This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Passing function arguments in registers
- To: law at cygnus dot com
- Subject: Re: Passing function arguments in registers
- From: "Michael P. Hayes" <michaelh at ongaonga dot chch dot cri dot nz>
- Date: Wed, 15 Oct 1997 09:47:48 +1300
- Cc: "Michael P. Hayes" <michaelh at ongaonga dot chch dot cri dot nz>, Michael Meissner <meissner at cygnus dot com>, egcs at cygnus dot com
- References: <199710100357.QAA01814@ongaonga.chch.cri.nz><9967.876852187@hurl.cygnus.com>
Jeffrey A Law writes:
> What exactly are the calling conventions for this target?
The register allocation order is AR2, R2, R3, RC, RS, RE (then stack).
However, the first and second floating point values are always in R2
and R3 (and all other floats are on the stack). Structs are always
passed on the stack.