about code generation, return code

Alan Modra alan@linuxcare.com.au
Tue Oct 24 06:53:00 GMT 2000


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.



More information about the Binutils mailing list