* PowerPC assembly question
1999-07-08 16:25 PREP IDE support is broken Matt Porter
@ 1999-07-08 17:39 ` Charles Lepple
1999-07-08 17:54 ` Josh Huber
1999-07-08 18:32 ` David Edelsohn
0 siblings, 2 replies; 4+ messages in thread
From: Charles Lepple @ 1999-07-08 17:39 UTC (permalink / raw)
To: linuxppc-dev
Hope this isn't too far off topic.
I've been poking around with some disassembled C code, and I'm wondering
if there is a source of documentation on register usage guidelines
(maybe an ABI? I'm just not used to this concept of passing arguments in
registers as opposed to the stack). Any help would be appreciated.
--Charles Lepple
clepple@mitre.org
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PowerPC assembly question
1999-07-08 17:39 ` PowerPC assembly question Charles Lepple
@ 1999-07-08 17:54 ` Josh Huber
1999-07-08 18:32 ` David Edelsohn
1 sibling, 0 replies; 4+ messages in thread
From: Josh Huber @ 1999-07-08 17:54 UTC (permalink / raw)
To: Charles Lepple; +Cc: linuxppc-dev
Charles Lepple writes:
>
> Hope this isn't too far off topic.
>
> I've been poking around with some disassembled C code, and I'm wondering
> if there is a source of documentation on register usage guidelines
> (maybe an ABI? I'm just not used to this concept of passing arguments in
> registers as opposed to the stack). Any help would be appreciated.
What you're looking for is linked from here:
http://www.dartmouth.edu/cgi-bin/cgiwrap/jonh/lppc/faq.pl?file=155
Josh
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PowerPC assembly question
1999-07-08 17:39 ` PowerPC assembly question Charles Lepple
1999-07-08 17:54 ` Josh Huber
@ 1999-07-08 18:32 ` David Edelsohn
1 sibling, 0 replies; 4+ messages in thread
From: David Edelsohn @ 1999-07-08 18:32 UTC (permalink / raw)
To: Charles Lepple; +Cc: linuxppc-dev
>>>>> Charles Lepple writes:
Charles> I've been poking around with some disassembled C code, and I'm wondering
Charles> if there is a source of documentation on register usage guidelines
Charles> (maybe an ABI? I'm just not used to this concept of passing arguments in
Charles> registers as opposed to the stack). Any help would be appreciated.
All of this is defined in the appropriate ABI (AIX PowerOpen and
SVR4 PowerPC ABI). The ABI specifies the uses of each register when
targeting code to the calling convention (argument passing, volatile and
non-volatile registers, etc.)
David
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PowerPC assembly question
@ 1999-07-08 18:37 Charles A. Jolley
0 siblings, 0 replies; 4+ messages in thread
From: Charles A. Jolley @ 1999-07-08 18:37 UTC (permalink / raw)
To: Charles Lepple, linuxppc-dev
There are two main ABI's that I have consulted in the past regarding how
Linux handles linking, etc. on the PowerPC. The primary one is the
PowerOpen ABI, which describes many of the general register usage
conventions. The other is the "System V ABI, PowerPC Processor Supplement",
published by SunSoft. This primarily describes how PowerPC images are held
in ELF files. I have both of these plus some additional helper docs in PDF
format which I use for reference here, but I know they are also available on
the web somewhere and there are probably some more up-to-date versions.
(Mine were released in 1994).
I can send them if needed...the copyrights don't prohibit redistribution...
however I seem to remember getting all of these from either IBM or
Motorola's PowerPC site so you may want to check there for newer versions
first.
Cheers,
-Charles
----------
>From: Charles Lepple <clepple@mitre.org>
>To: linuxppc-dev@lists.linuxppc.org
>Subject: PowerPC assembly question
>Date: Thu, Jul 8, 1999, 12:39 PM
>
>
> Hope this isn't too far off topic.
>
> I've been poking around with some disassembled C code, and I'm wondering
> if there is a source of documentation on register usage guidelines
> (maybe an ABI? I'm just not used to this concept of passing arguments in
> registers as opposed to the stack). Any help would be appreciated.
>
> --Charles Lepple
> clepple@mitre.org
>
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]]
[[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1999-07-08 18:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-08 18:37 PowerPC assembly question Charles A. Jolley
-- strict thread matches above, loose matches on Subject: below --
1999-07-08 16:25 PREP IDE support is broken Matt Porter
1999-07-08 17:39 ` PowerPC assembly question Charles Lepple
1999-07-08 17:54 ` Josh Huber
1999-07-08 18:32 ` David Edelsohn
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).