Prev: IDE
Next: New NBASM IDE
From: H. Peter Anvin on
On 03/13/2010 03:12 AM, jacob navia wrote:
>
> I have never seen any compiler unde the Intel architecture that
> doesn't place the return value (when there is one of course, and
> when it fits 32 bits) in the EAX register.
>
> Can you name a compiler or a combination of compiler+flags
> that would place the return value in another register?

More importantly, this is the sort of thing that is guaranteed in an ABI
document -- specifically the handoff conditions that apply at
intermodule function call boundaries.

-hpa

First  |  Prev  | 
Pages: 1 2 3 4
Prev: IDE
Next: New NBASM IDE