C语言函数调用栈简单图解
最近在学习汇编,作为笔记记一下函数调用栈。
这是VS编写的源代码,我们 F5 调试一下,查看汇编码
#include "stdafx.h"
int Function(int x, int y) {
int t = 0;
t = x + y;
return t;
}
int main(int argc,char *argv[])
{
Function(2,3);
return 0;
}
接着我们跳入函数得到
于是我们根据这些语句以及寄存器窗口中EBP,ESP的值画出栈图.
此时调用完毕,EIP指向0x00DD3B67
就先写到这里,可是在这里我不理解,那句mov ecx,33h在这里什么作用,等待解决。