Untitled
By: a guest | Feb 9th, 2010 | Syntax:
ASM (NASM) | Size: 0.46 KB | Hits: 11 | Expires: Never
GCC :
.file "testcase.c"
.text
.globl _bar
.def _bar; .scl 2; .type 32; .endef
_bar:
pushl %ebp
movl %esp, %ebp
subl $24, %esp
movl $0, (%esp)
movl __imp__foo, %eax
call *%eax
leave
ret
Clang :
.def _bar; .scl 2; .type 32; .endef
.text
.globl _bar
.align 16
_bar:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
movl $0, (%esp)
call _foo
addl $8, %esp
popl %ebp
ret
.def _foo; .scl 2; .type 32; .endef