Skip to contentSkip to conversation

GCC PowerPC register conventions ?

DISCUSSION Bijendra Singh 2 participants 2 messages Feb 25, 2000

lore
Share & tools
lore
#0 lore raw

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.

Thanks
-Bijendra

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

#1 lore raw
Quoted 9 lines · Bijendra Singh

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
[email protected], [email protected]

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