linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* GCC PowerPC register conventions  ?
@ 2000-02-25  0:50 Bijendra Singh
  2000-02-25  3:12 ` Kevin Buettner
  0 siblings, 1 reply; 3+ messages in thread
From: Bijendra Singh @ 2000-02-25  0:50 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: linuxppc-embedded


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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: GCC PowerPC register conventions  ?
  2000-02-25  0:50 GCC PowerPC register conventions ? Bijendra Singh
@ 2000-02-25  3:12 ` Kevin Buettner
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Buettner @ 2000-02-25  3:12 UTC (permalink / raw)
  To: Bijendra Singh, linuxppc-dev; +Cc: linuxppc-embedded


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@primenet.com, kevinb@redhat.com

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re:  GCC PowerPC register conventions  ?
@ 2000-02-26 15:17 W4OQM
  0 siblings, 0 replies; 3+ messages in thread
From: W4OQM @ 2000-02-26 15:17 UTC (permalink / raw)
  To: bijendra, linuxppc-dev; +Cc: linuxppc-embedded


For the terminally curious PPC assembly language programmer, I recommend the
following:

The PowerPC Compiler Writer's Guide
Edited by Steve Hoxey, et.al.
International Business Machines Corporation 1996.

An online version is available at:

http://www.chips.ibm.com/techlib/products/powerpc/manuals/compiler/cover.html


Charlie

Charles A. Wells
c.wells@ieee.org

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-02-26 15:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-25  0:50 GCC PowerPC register conventions ? Bijendra Singh
2000-02-25  3:12 ` Kevin Buettner
  -- strict thread matches above, loose matches on Subject: below --
2000-02-26 15:17 W4OQM

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).