linux堆栈模型问题???(500分)
int main()
{
return 0;
}
gcc的汇编如下:Redhat linux8.0 9.0
.file "test.c"
.text
.globl main
.type main,@function
main:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
andl $-16, %esp
movl $0, %eax
subl %eax, %esp
movl $0, %eax
leave
ret
.Lfe1:
.size main,.Lfe1-main
.ident "GCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)"
想问一下
subl $8, %esp
andl $-16, %esp
到底什么作用?