C语言中,每个栈帧对应着一个未运行完的函数。栈帧中保存了该函数的返回地址和局部变量。
... 二、栈帧结构和函数调用过程 栈在函数调用中的作用:参数传递、局部变量分配、保存调用的返回地址、保存寄存器以供恢复。 栈帧(stack Frame):一次函数调用包括将数据和控制从代码的一个部分传递到另外一个部分,栈帧与某个过程调用一一映射。
基于436个网页-相关网页
它包含了栈帧和局部变量,但与真正的线程不同的是它无法执行。
It includes stack frames and local variables, but unlike a true thread it is not executable.
堆栈帧中的最后一个条目是一个指向前一堆栈帧的指针,通常被称为后向指针(back pointer)。
The final item in the stack frame is a pointer to the previous stack frame, often called the back pointer.
所有栈帧被分配在称为调用栈的内存区域。
All the stack frames are allocated in a region of memory called the call stack.
应用推荐