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


John Hörnkvist wrote:

>> 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. 
>
> As far as I remember, sizeof(long double) is 8 on Mac OS X, so passing 
> the FFI test may be accidental. 


Ahh, that makes sense.

> I don't feel all that comfortable about merging AIX and Darwin ABI's; 
> I think I had to do some footwork in the assembly to get around the 
> Mac OS X's dynamic linking and the register conventions that deal with 
> that.


It ought to be possible to get around any such issues with some 
preprocessor macros in the assembly. Assuming that doesn't get too ugly, 
it would definatly be nice to merge them.

regards

Bryce.



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