tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: x86 abi for complex.



On Thu, Feb 02, 2023 at 07:59:32PM +0100, Anders Magnusson wrote:
> What is the reason for;
> 1) return floats in eax/edx instead as a struct?

Just guessing: consistency with other 64bit return values.

> 2) not just returning all complex numbers on the floating point stack?

Again guessing: %st(0) would not be enough and %st(1)..%st(7) are defined
as scratch registers and to not have any role in function calls. But
*why* this was defined, I have no idea.

Martin


Home | Main Index | Thread Index | Old Index