C语言中,每个栈帧对应着一个未运行完的函数。栈帧中保存了该函数的返回地址和局部变量。
... 二、栈帧结构和函数调用过程 栈在函数调用中的作用:参数传递、局部变量分配、保存调用的返回地址、保存寄存器以供恢复。 栈帧(stack Frame):一次函数调用包括将数据和控制从代码的一个部分传递到另外一个部分,栈帧与某个过程调用一一映射。
基于436个网页-相关网页
所有栈帧被分配在称为调用栈的内存区域。
All the stack frames are allocated in a region of memory called the call stack.
它包含了栈帧和局部变量,但与真正的线程不同的是它无法执行。
It includes stack frames and local variables, but unlike a true thread it is not executable.
栈的布局组成了“栈帧”,知道这些如何运作需要一些脑力劳动去破译。
The layout of the stack constitutes the "stack frame", and knowing how this works can go a long way to decoding how something works.
应用推荐