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

Re: [MiNT] GCC return register



On 11/16/11 15:52, Vincent Rivière wrote:
> Alan Hourihane wrote:
>> What about long double, is it d0/d1/d2 ?
>
> Good question, I was not aware about the long double issue.
> They are 8 bytes on ColdFire, but 12 bytes on 680x0, so sure the 2
> additional bytes have to be stored somewhere. d2 is not a scrap
> register so that would be surprising. Maybe a hidden additional
> function parameter as a pointer to the return value...
>
> The results of your tests will be interesting.
>
It is d2, but it's pushed/popped off the stack as well.

Alan.