Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "foo.cpp"
- .intel_syntax noprefix
- .local _ZStL8__ioinit
- .comm _ZStL8__ioinit,1,1
- .text
- .globl _Z3foob
- .type _Z3foob, @function
- _Z3foob:
- .LFB969:
- .cfi_startproc
- push rbp
- .cfi_def_cfa_offset 16
- .cfi_offset 6, -16
- mov rbp, rsp
- .cfi_def_cfa_register 6
- mov eax, edi
- mov BYTE PTR [rbp-4], al
- pop rbp
- .cfi_def_cfa 7, 8
- ret
- .cfi_endproc
- .LFE969:
- .size _Z3foob, .-_Z3foob
- .section .rodata
- .LC0:
- .string "foo\n"
- .text
- .globl main
- .type main, @function
- main:
- .LFB970:
- .cfi_startproc
- push rbp
- .cfi_def_cfa_offset 16
- .cfi_offset 6, -16
- mov rbp, rsp
- .cfi_def_cfa_register 6
- push rbx
- sub rsp, 8
- .cfi_offset 3, -24
- mov esi, OFFSET FLAT:.LC0
- mov edi, OFFSET FLAT:_ZSt4cout
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
- mov rbx, rax
- mov esi, OFFSET FLAT:.LC0
- mov edi, OFFSET FLAT:_ZSt4cout
- call _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
- mov rax, QWORD PTR [rax]
- sub rax, 24
- mov rax, QWORD PTR [rax]
- add rax, rbx
- mov rdi, rax
- call _ZNKSt9basic_iosIcSt11char_traitsIcEEntEv
- movzx eax, al
- mov edi, eax
- call _Z3foob
- mov eax, 0
- add rsp, 8
- pop rbx
- pop rbp
- .cfi_def_cfa 7, 8
- ret
- .cfi_endproc
- .LFE970:
- .size main, .-main
- .type _Z41__static_initialization_and_destruction_0ii, @function
- _Z41__static_initialization_and_destruction_0ii:
- .LFB976:
- .cfi_startproc
- push rbp
- .cfi_def_cfa_offset 16
- .cfi_offset 6, -16
- mov rbp, rsp
- .cfi_def_cfa_register 6
- sub rsp, 16
- mov DWORD PTR [rbp-4], edi
- mov DWORD PTR [rbp-8], esi
- cmp DWORD PTR [rbp-4], 1
- jne .L4
- cmp DWORD PTR [rbp-8], 65535
- jne .L4
- mov edi, OFFSET FLAT:_ZStL8__ioinit
- call _ZNSt8ios_base4InitC1Ev
- mov edx, OFFSET FLAT:__dso_handle
- mov esi, OFFSET FLAT:_ZStL8__ioinit
- mov edi, OFFSET FLAT:_ZNSt8ios_base4InitD1Ev
- call __cxa_atexit
- .L4:
- leave
- .cfi_def_cfa 7, 8
- ret
- .cfi_endproc
- .LFE976:
- .size _Z41__static_initialization_and_destruction_0ii, .-_Z41__static_initialization_and_destruction_0ii
- .type _GLOBAL__sub_I__Z3foob, @function
- _GLOBAL__sub_I__Z3foob:
- .LFB977:
- .cfi_startproc
- push rbp
- .cfi_def_cfa_offset 16
- .cfi_offset 6, -16
- mov rbp, rsp
- .cfi_def_cfa_register 6
- mov esi, 65535
- mov edi, 1
- call _Z41__static_initialization_and_destruction_0ii
- pop rbp
- .cfi_def_cfa 7, 8
- ret
- .cfi_endproc
- .LFE977:
- .size _GLOBAL__sub_I__Z3foob, .-_GLOBAL__sub_I__Z3foob
- .section .init_array,"aw"
- .align 8
- .quad _GLOBAL__sub_I__Z3foob
- .hidden __dso_handle
- .ident "GCC: (Debian 4.7.2-5) 4.7.2"
- .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment