Basic System Problem Analysis - August 2003
44
page 163/17/2003
Basic System Problem Analysis
Procedure Calling Convention
• Stack Frames are built by non-leaf procedures so that
when they call other procedures registers can be spilled
into the frame and restored from there on return.
• GR3 through GR18 are “callee save” registers, they are
spilled, if necessary by the procedure that is being
called.
• GR19 through GR22 are “caller save” registers, saved
by the procedure making the call.
Notes: