1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | .file "ptt.cpp" .text .globl __Z15passByReferenceRi .def __Z15passByReferenceRi; .scl 2; .type 32; .endef __Z15passByReferenceRi: pushl %ebp movl %esp, %ebp movl 8(%ebp), %eax movl $99, (%eax) leave ret .def ___main; .scl 2; .type 32; .endef .globl _main .def _main; .scl 2; .type 32; .endef _main: pushl %ebp movl %esp, %ebp andl $-16, %esp subl $32, %esp call ___main leal 28(%esp), %eax movl %eax, (%esp) call __Z15passByReferenceRi movl $0, %eax leave ret |
Direct link: https://paste.plurk.com/show/324368