main函数编译后的汇编代码

main函数编译后的汇编代码

void main() 

{

}

>gcc -S stacktestmain.c -o stactestmain.S

.file"stacktestmain.c"

.def___main;.scl2;.type32;.endef

.text

扫描二维码关注公众号,回复: 6273307 查看本文章

.globl _main

.def_main;.scl2;.type32;.endef

_main:

pushl%ebp

movl%esp, %ebp

andl$-16, %esp

call___main

movl%ebp, %esp

popl%ebp

ret

其中andl $-16, %esp这条汇编指令是干什么的?

猜你喜欢

转载自lobin.iteye.com/blog/2441299