PowerPC Stack Frames

Andrew Klossner andrew@user2.teleport.com
Mon Dec 6 13:06:00 GMT 1999


> I am using egcs-2.91.66 for a PowerPC.  I would like
> some help understanding how registers and the stack are used
> on PowerPC with GCC.

It depends on which ABI you're using.  If it's the EABI (Embedded):
You have to save GPR registers 0 and 3-12, LR, CTR, XER, and CR.  If
the C routines you'll call use floating point, you must also save FP
registers 0-13 and FPSCR.  The C routines will save/restore anything
else they use.

  -=- Andrew Klossner (andrew@teleport.com)


More information about the Gcc-help mailing list