栈帧总结:
源程序:
#include<stdio.h>
int my_add(int a, int b)
{
int z = a + b;
return z;
}
int main()
{
int a = 0XAAAAAAAA;
int b = 0xFFFFFFFF;
int add = my_add(a,b);
printf("add = %d\n",add);
return 0;
}
将此程序调试并转到汇编执行:
①
②
③
④
⑤
⑥
⑦
⑧
⑨
⑩
①①
①②
①③
①④
①⑤
①⑥
①⑦
①⑧
①⑨
②0
②①