GCC PowerPC register conventions ?

Kevin Buettner kev at primenet.com
Fri Feb 25 14:12:58 EST 2000


On Feb 24,  4:50pm, Bijendra Singh wrote:

> I am looking for information on stack contents
> in a C/C++ procedure call to/from PowerPC(eg. 603e )
> assembly code.
> (1) How to organize data in registers when calling
> a C/C++ procedure from PowerPC assembly ?
> (2) Which register holds return value on return from
> a procedure in C/C++ when a C/C++ proc is called
> from ppc assembly.
> (3) Any references/URLs/docs for programming details.

The following documents will answer your questions:

    http://www.mot.com/SPS/ADC/pps/download/8XX/SVR4abippc.pdf
    http://www.mot.com/SPS/ADC/pps/download/8XX/ppceabi.pdf
    http://www.chips.ibm.com/techlib/products/powerpc/manuals/compiler/cover.html

Kevin

--
Kevin Buettner
kev at primenet.com, kevinb at redhat.com

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list