Created
May 12, 2014 22:38
-
-
Save anonymous/3752b43ee778214771db to your computer and use it in GitHub Desktop.
snap.s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.text | |
.def @feat.00; | |
.scl 3; | |
.type 0; | |
.endef | |
.globl @feat.00 | |
@feat.00 = 1 | |
.def ___cxx_global_var_init; | |
.scl 3; | |
.type 32; | |
.endef | |
.align 16, 0x90 | |
___cxx_global_var_init: # @__cxx_global_var_init | |
.cfi_startproc | |
# BB#0: # %entry | |
pushl %ebp | |
Ltmp0: | |
.cfi_def_cfa_offset 8 | |
Ltmp1: | |
.cfi_offset %ebp, -8 | |
movl %esp, %ebp | |
Ltmp2: | |
.cfi_def_cfa_register %ebp | |
subl $8, %esp | |
movl $__ZStL8__ioinit, %ecx | |
calll __ZNSt8ios_base4InitC1Ev | |
leal ___dtor__ZStL8__ioinit, %ecx | |
movl %ecx, (%esp) | |
calll _atexit | |
movl %eax, -4(%ebp) # 4-byte Spill | |
addl $8, %esp | |
popl %ebp | |
retl | |
.cfi_endproc | |
.def ___dtor__ZStL8__ioinit; | |
.scl 3; | |
.type 32; | |
.endef | |
.align 16, 0x90 | |
___dtor__ZStL8__ioinit: # @__dtor__ZStL8__ioinit | |
.cfi_startproc | |
# BB#0: # %entry | |
pushl %ebp | |
Ltmp3: | |
.cfi_def_cfa_offset 8 | |
Ltmp4: | |
.cfi_offset %ebp, -8 | |
movl %esp, %ebp | |
Ltmp5: | |
.cfi_def_cfa_register %ebp | |
movl $__ZStL8__ioinit, %ecx | |
calll __ZNSt8ios_base4InitD1Ev | |
popl %ebp | |
retl | |
.cfi_endproc | |
.def _main; | |
.scl 2; | |
.type 32; | |
.endef | |
.globl _main | |
.align 16, 0x90 | |
_main: # @main | |
.cfi_startproc | |
# BB#0: # %entry | |
pushl %ebp | |
Ltmp6: | |
.cfi_def_cfa_offset 8 | |
Ltmp7: | |
.cfi_offset %ebp, -8 | |
movl %esp, %ebp | |
Ltmp8: | |
.cfi_def_cfa_register %ebp | |
subl $16, %esp | |
calll ___main | |
leal __ZSt4cout, %eax | |
leal L_.str, %ecx | |
movl $0, -4(%ebp) | |
movl %eax, (%esp) | |
movl %ecx, 4(%esp) | |
calll __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc | |
movl %esp, %ecx | |
movl $__ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_, (%ecx) | |
movl %eax, %ecx | |
calll __ZNSolsEPFRSoS_E | |
subl $4, %esp | |
movl $0, %ecx | |
movl %eax, -8(%ebp) # 4-byte Spill | |
movl %ecx, %eax | |
addl $16, %esp | |
popl %ebp | |
retl | |
.cfi_endproc | |
.def __GLOBAL__I_a; | |
.scl 3; | |
.type 32; | |
.endef | |
.align 16, 0x90 | |
__GLOBAL__I_a: # @_GLOBAL__I_a | |
.cfi_startproc | |
# BB#0: # %entry | |
pushl %ebp | |
Ltmp9: | |
.cfi_def_cfa_offset 8 | |
Ltmp10: | |
.cfi_offset %ebp, -8 | |
movl %esp, %ebp | |
Ltmp11: | |
.cfi_def_cfa_register %ebp | |
calll ___cxx_global_var_init | |
popl %ebp | |
retl | |
.cfi_endproc | |
.lcomm __ZStL8__ioinit,1 # @_ZStL8__ioinit | |
.section .rdata,"rd" | |
L_.str: # @.str | |
.asciz "Hello World!" | |
.section .ctors,"wd" | |
.align 4 | |
.long __GLOBAL__I_a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment