This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: about code generation, return code


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]