Skip to content

Instantly share code, notes, and snippets.

Created May 12, 2014 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ad8c32e27b7f7c007d91 to your computer and use it in GitHub Desktop.
Save anonymous/ad8c32e27b7f7c007d91 to your computer and use it in GitHub Desktop.
comp.s
.def @feat.00;
.scl 3;
.type 0;
.endef
.globl @feat.00
@feat.00 = 1
.def ___cxx_global_var_init;
.scl 3;
.type 32;
.endef
.text
.align 16, 0x90
___cxx_global_var_init:
.cfi_startproc
pushl %ebp
Ltmp2:
.cfi_def_cfa_offset 8
Ltmp3:
.cfi_offset %ebp, -8
movl %esp, %ebp
Ltmp4:
.cfi_def_cfa_register %ebp
subl $8, %esp
leal __ZStL8__ioinit, %eax
movl %eax, (%esp)
calll __ZNSt8ios_base4InitC1Ev
leal ___dtor__ZStL8__ioinit, %eax
movl %eax, (%esp)
calll _atexit
movl %eax, -4(%ebp)
addl $8, %esp
popl %ebp
ret
.cfi_endproc
.def ___dtor__ZStL8__ioinit;
.scl 3;
.type 32;
.endef
.align 16, 0x90
___dtor__ZStL8__ioinit:
.cfi_startproc
pushl %ebp
Ltmp7:
.cfi_def_cfa_offset 8
Ltmp8:
.cfi_offset %ebp, -8
movl %esp, %ebp
Ltmp9:
.cfi_def_cfa_register %ebp
pushl %eax
leal __ZStL8__ioinit, %eax
movl %eax, (%esp)
calll __ZNSt8ios_base4InitD1Ev
addl $4, %esp
popl %ebp
ret
.cfi_endproc
.def _main;
.scl 2;
.type 32;
.endef
.globl _main
.align 16, 0x90
_main:
.cfi_startproc
pushl %ebp
Ltmp12:
.cfi_def_cfa_offset 8
Ltmp13:
.cfi_offset %ebp, -8
movl %esp, %ebp
Ltmp14:
.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
leal __ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_, %ecx
movl %eax, (%esp)
movl %ecx, 4(%esp)
calll __ZNSolsEPFRSoS_E
movl $0, %ecx
movl %eax, -8(%ebp)
movl %ecx, %eax
addl $16, %esp
popl %ebp
ret
.cfi_endproc
.def __GLOBAL__I_a;
.scl 3;
.type 32;
.endef
.align 16, 0x90
__GLOBAL__I_a:
.cfi_startproc
pushl %ebp
Ltmp17:
.cfi_def_cfa_offset 8
Ltmp18:
.cfi_offset %ebp, -8
movl %esp, %ebp
Ltmp19:
.cfi_def_cfa_register %ebp
calll ___cxx_global_var_init
popl %ebp
ret
.cfi_endproc
.lcomm __ZStL8__ioinit,1
.section .rdata,"r"
L_.str:
.asciz "Hello World!"
.section .ctors,"w"
.align 4
.long __GLOBAL__I_a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment