这意味着我们必须手工重新编写栈来仿造一个返回地址,以使得尾部调用的函数能直接返回到调用它的函数。
This means that we have to manually rewrite the stack to fake a return address so that the tail-called function will return directly to our parent.
栈顶的地址就代表最后一次被调用的函数(也就是当前的活动函数)。
The address at the top of the stack represents the function that was last called (that is, the active function).
进程地址空间的首段地址便是栈,它储存了局部变量以及大多数编程语言的函数参数。
The topmost segment in the process address space is the stack, which stores local variables and function parameters in most programming languages.
应用推荐