libffi Darwin support
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Tue Nov 27 17:54:00 GMT 2001
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.
More information about the Libffi-discuss
mailing list