.file "test.cpp" .section .rdata,"dr" LC0: .ascii "initing x ...\0" .text .globl __Z5initXv .def __Z5initXv; .scl 2; .type 32; .endef __Z5initXv: pushl %ebp movl %esp, %ebp subl $24, %esp movl $LC0, (%esp) call _puts movl $11, %eax leave ret .globl _x .bss .align 4 _x: .space 4 .def ___main; .scl 2; .type 32; .endef .section .rdata,"dr" LC1: .ascii "x = %d\12\0" .text .globl _main .def _main; .scl 2; .type 32; .endef _main: pushl %ebp movl %esp, %ebp andl $-16, %esp subl $16, %esp call ___main movl _x, %eax movl %eax, 4(%esp) movl $LC1, (%esp) call _printf movl $0, %eax leave ret .def __Z41__static_initialization_and_destruction_0ii; .scl 3; .type 32; .endef __Z41__static_initialization_and_destruction_0ii: pushl %ebp movl %esp, %ebp subl $8, %esp cmpl $1, 8(%ebp) jne L7 cmpl $65535, 12(%ebp) jne L7 call __Z5initXv movl %eax, _x L7: leave ret .def __GLOBAL__I__Z5initXv; .scl 3; .type 32; .endef __GLOBAL__I__Z5initXv: pushl %ebp movl %esp, %ebp subl $24, %esp movl $65535, 4(%esp) movl $1, (%esp) call __Z41__static_initialization_and_destruction_0ii leave ret .section .ctors,"w" .align 4 .long __GLOBAL__I__Z5initXv .def _puts; .scl 2; .type 32; .endef .def _printf; .scl 2; .type 32; .endef