The activation record contains all of the call-specific data for the function, including parameters and local variables.
活动记录包含了这个函数的所有与调用有关的数据,包括参数和本地变量。
This makes it easy for functions to know where their activation record is — they are simply defined in terms of the stack pointer.
这对函数了解自己的活动记录在什么地方提供了方便——它们可以使用堆栈指针的形式简单地进行定义。
Only when the function call is completely finished is the space for the activation record released for reuse (more on this later).
直到函数调用彻底完成 时,活动记录使用的空间才会被释放以便重用(更多信息请参看后面的介绍)。
Each call gets its own activation record, so each time it is called the variables get their own storage space within that activation record.
每个调用都有自己的活动记录,因此每次被调用时,变量都会在活动记录中获得自己的存储空间。
The activation record isn't needed anymore, so we are going to cut it out and redirect the tail-called function back to the function that called us.
再也不需要活动记录(activation record),所以我们将删掉它,并将尾部调用的函数重定向返回到调用我们的函数。
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.
如果一个函数正在执行,那么堆栈指针就会指向整个堆栈的顶部,这也是该函数活动记录的顶部。
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.
如果一个函数正在执行,那么堆栈指针就会指向整个堆栈的顶部,这也是该函数活动记录的顶部。
应用推荐