Guardian Programmer's Guide

Table Of Contents
Managing Memory
Guardian Programmer’s Guide 421922-014
17 - 11
Managing the Native User Data Areas
Figure 17-4(d) and 17-4(e) show how the main stack contracts as the called
procedures return control to the calling procedures. When a called procedure returns
control to a calling procedure, the called procedure:
Restores the registers it saved, including the return address
Increments the sp register to delete its stack frame
Jumps to the location in the ra register
The sp register always points to the current stack tip; that is, the lowest-addressed byte
in the stack frame of the currently active procedure.