有两个重要的寄存器负责处理堆栈:基址指针(EBP)和栈指针(ESP),EBP指向当前进程的当前栈帧的底部,ESP则总是指向栈顶 当调用函数的时候,会导致程序流跳转.在汇编代码调用函数时,将发生以下三件事: (1)调用函数首先按照逆序将函数压入栈中,从而对函数调用进行设置 (2)接下来,将扩展的指令指针(EIP)保存到堆栈上,这样程序在函数返回后就能在之前中断的地方继续执行.将这个地址称为返回地址. (3)最后执行call指令,将函数的地址放入EIP中执行 被调用函数的职责是,首先将调用程序的EB…