正在加载图片...
In a stack frame(activation record)we hold the following information 1)frame pointer: pointer value of the previous stack frame so we can reset the top of stack when we exit this function This is also sometimes called the dynamic link 2)static link: in languages(like Pascal but not C or Decaf) that allow nested function declarations, a function may be able to access the variables of the function(s )within which it is declared. In the static link, we hold the pointer value of the stack frame in which the current function was declared 3)return address: point in the code to which we return at the end of execution of the current function 4)values of arguments passed to the function and locals and temporaries used in the functionIn a stack frame (activation record) we hold the following information: 1) frame pointer: pointer value of the previous stack frame so we can reset the top of stack when we exit this function. This is also sometimes called the dynamic link. 2) static link: in languages (like Pascal but not C or Decaf) that allow nested function declarations, a function may be able to access the variables of the function(s) within which it is declared. In the static link, we hold the pointer value of the stack frame in which the current function was declared. 3) return address: point in the code to which we return at the end of execution of the current function. 4) values of arguments passed to the function and locals and temporaries used in the function
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有