First page Back Continue Last page Overview Graphics
The Stack Frame
Associated with each subroutine call is a segment of stack called the frame.
In addition to local variables, the frame contains:
- passed parameters from the calling code segment,
- space for results returned from subroutine,
- the return address of the subroutine, and
- saved register contents.
Within the subroutine, addressing is done relative to the frame pointer, which points to the return address.