From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrew@user2.teleport.com (Andrew Klossner) To: help-gcc@gnu.org Subject: Re: PowerPC Stack Frames Date: Mon, 06 Dec 1999 13:06:00 -0000 Message-id: <82h88r$hjm$1@user2.teleport.com> References: <82gpv3$bjn@sirius.develcon.com> X-SW-Source: 1999-12/msg00089.html > 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) From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrew@user2.teleport.com (Andrew Klossner) To: help-gcc@gnu.org Subject: Re: PowerPC Stack Frames Date: Fri, 31 Dec 1999 22:24:00 -0000 Message-ID: <82h88r$hjm$1@user2.teleport.com> References: <82gpv3$bjn@sirius.develcon.com> X-SW-Source: 1999-12n/msg00089.html Message-ID: <19991231222400.NetkuS2a5ySLXs7NH1_Nto0HAzyUiGpIibn4K5FC-9U@z> > 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)