最近有朋友问stack frame是什么。
我整理了一下,供大家参考。
Stack frame is created by prolog assembly code,
and it's a an area of memory that temporarily holds the arguments to the function as well as any variables that are defined local to the function.
When the procedure is called, the stack frame is pushed onto stack.
The calling sequence is as the following:
1. call prolog
2. prolog creates stack frame, which holds arguments to the function as well as any variables that are defined local to the function.
3. push stack frame onto stack.
4. call the procedure.
5. epilog