如果一个函数正在执行,那么堆栈指针就会指向整个堆栈的顶部,这也是该函数活动记录的顶部。
If a function is executing, then the stack pointer is pointing to the top of the whole stack, which is also the top of that function's activation record.
这就是递归函数是如何保证其他活动函数调用中的变量值不受影响的。
This is how recursive functions keep from trashing the values of the variables in other, active function calls.
活动记录包含了这个函数的所有与调用有关的数据,包括参数和本地变量。
The activation record contains all of the call-specific data for the function, including parameters and local variables.
应用推荐