1、 程序如下:
#include <stdio.h>
int func(int a,int b)
{
int c=a+b;
return c;
}
int main()
{
int result;
result=func(1,2);
return 0;
}
2、 分析如下:
㈠、首先我们可以查看主函数的反汇编代码,如下:
7: int main()
8: {
00401060 push ebp
00401061 mov ebp,esp
00401063 sub esp,44h
00401066 push ebx
00401067 push esi
00401068 push edi
00401069 lea edi,[ebp-44h]