Linux MIPS Architecture development
 help / color / mirror / Atom feed
* 64-bit values on 32-bit machine
@ 2008-07-08  9:34 Harald Krapfenbauer
  2008-07-08 15:14 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Harald Krapfenbauer @ 2008-07-08  9:34 UTC (permalink / raw)
  To: linux-mips@linux-mips.org

Hello,

I want to know how 64-bit values are passed on a little-endian 32-bit
MIPS machine on function calls.

If there is one 64-bit argument to a function, it is passed in registers
a0-a1 I think, but does a0 contain the lower 4 bytes or the upper 4?

Similarly, if there are several arguments so that a 64-bit argument is
passed on the stack: Do the lower 4 bytes go to the lower address or to
the higher?

Thanks in advance!
Harald

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

end of thread, other threads:[~2008-07-08 15:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-08  9:34 64-bit values on 32-bit machine Harald Krapfenbauer
2008-07-08 15:14 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox