This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: about code generation, return code
- To: Emmanuel Michon <emmanuel_michon at sdesigns dot com>
- Subject: Re: about code generation, return code
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Wed, 25 Oct 2000 00:53:29 +1100 (EST)
- cc: binutils at sources dot redhat dot com
On 24 Oct 2000, Emmanuel Michon wrote:
> I don't know if it's the right list to ask this question:
No, it's not.
> can I assume that the return code of a function compiled with gcc
> on i386 is always carried by %eax?
No. eg. functions returning doubles will return in %st(0), functions
returning long long or small structures will return in %eax,%edx
--
Linuxcare. Support for the Revolution.