[Top] [All Lists]

64-bit values on 32-bit machine

To: "" <>
Subject: 64-bit values on 32-bit machine
From: Harald Krapfenbauer <>
Date: Tue, 08 Jul 2008 11:34:37 +0200
Organization: Institute of Computer Technology, Vienna University of Technology
Original-recipient: rfc822;
User-agent: Thunderbird (X11/20080502)

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!

<Prev in Thread] Current Thread [Next in Thread>