Re: debugging gcc-generated assembly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jason Spencer <spencer8@xxxxxxxxxxxxx> 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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux