From: Harald Krapfenbauer <krapfenbauer@ict.tuwien.ac.at>
To: "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
Subject: 64-bit values on 32-bit machine
Date: Tue, 08 Jul 2008 11:34:37 +0200 [thread overview]
Message-ID: <487334AD.70100@ict.tuwien.ac.at> (raw)
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
next reply other threads:[~2008-07-08 9:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-08 9:34 Harald Krapfenbauer [this message]
2008-07-08 15:14 ` 64-bit values on 32-bit machine Ralf Baechle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=487334AD.70100@ict.tuwien.ac.at \
--to=krapfenbauer@ict.tuwien.ac.at \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox