public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: debugging gcc-generated assembly
@ 2004-09-08 20:14 Jason Spencer
  2004-09-08 20:23 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Spencer @ 2004-09-08 20:14 UTC (permalink / raw)
  To: gcc-help

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 460 bytes --]

Hi, Gang. 
 
I'm trying to chase a nasty bug in code generated by
GCC 2.7.2 on a Motorola PowerPC 603 core.  I have to
understand the register usage conventions the compiler
uses, but I can't find that in any of the docs. 
Specifically, I'm interested in things like which
register is the "this" pointer, which are used for
parameters, return values, etc.  Is there an easily
accessible doc that goes through those details for my
architecture?
 
Thanks.


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

* Re: debugging gcc-generated assembly
  2004-09-08 20:14 debugging gcc-generated assembly Jason Spencer
@ 2004-09-08 20:23 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2004-09-08 20:23 UTC (permalink / raw)
  To: Jason Spencer; +Cc: gcc-help

Jason Spencer <spencer8@sbcglobal.net> writes:

> I'm trying to chase a nasty bug in code generated by
> GCC 2.7.2 on a Motorola PowerPC 603 core.  I have to
> understand the register usage conventions the compiler
> uses, but I can't find that in any of the docs. 
> Specifically, I'm interested in things like which
> register is the "this" pointer, which are used for
> parameters, return values, etc.  Is there an easily
> accessible doc that goes through those details for my
> architecture?

See the "Function Calling Sequence" chapter in
    http://www.linuxbase.org/spec/ELF/ppc64/PPC-elf64abi-1.7.html

The "this" pointer is normally treated as an invisible first
argument.

Ian

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

end of thread, other threads:[~2004-09-08 20:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-08 20:14 debugging gcc-generated assembly Jason Spencer
2004-09-08 20:23 ` Ian Lance Taylor

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 read-only IMAP folder(s) and NNTP newsgroup(s).