linux-mips
[Top] [All Lists]

64-bit values on 32-bit machine

To: "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
Subject: 64-bit values on 32-bit machine
From: Harald Krapfenbauer <krapfenbauer@ict.tuwien.ac.at>
Date: Tue, 08 Jul 2008 11:34:37 +0200
Organization: Institute of Computer Technology, Vienna University of Technology
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 2.0.0.14 (X11/20080502)
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


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