C语言中,每个栈帧对应着一个未运行完的函数。栈帧中保存了该函数的返回地址和局部变量。
所有栈帧被分配在称为调用栈的内存区域。
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.
应用推荐