This is the mail archive of the libffi-discuss@sources.redhat.com mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libffi Darwin support


David Edelsohn wrote:

>	As was mentioned in the posting on libffi-discuss last January,
>this is the same ABI as AIX (except for the lack of 64-bit support).  I am
>disappointed that it was added with the name Darwin all over the place,
>

Do you have any suggestions for a more generic name for this ABI? 
Calling it ffi_aix probibly isn't much better ;-)

>Also, the ABI description of long double is incorrect.  128-bit
>long double is returned in registers fp1 and fp2, not as a structure with
>a hidden parameter. 
>

This is what the docs say, but is it what Darwin GCC really implements? 
The long double test in ffitest.c works for me on darwin with the 
existing code.

>I am not sure if the use of fp2 needs to be marked somehow.
>

I think the assembly code would need to also save fp2 into the 
caller-provided return value area at r30 in the long double case?

regards

Bryce.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]