3 ms·
> I think x86 lets you return in eax and edx, but only if you're returning a single 64-bit value, not a struct with 2 32-bits. Depends entirely on the platform
by stephencanon 13y ago
> I think x86 lets you return in eax and edx, but only if you're returning a single 64-bit value, not a struct with 2 32-bits.
Depends entirely on the platform ABI. Under the OS X calling conventions 2x32b is returned in eax:edx (even if the 32b values are floats, which is annoying).
- pmjordan 13y agoAh, true. x86 ABIs are much less unified than x86-64 ones.