This is the mail archive of the
libffi-discuss@sources.redhat.com
mailing list for the libffi project.
Re: libffi Darwin support
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: John Hörnkvist <john at toastedmarshmallow dot com>
- Cc: David Edelsohn <dje at watson dot ibm dot com>, libffi-discuss at sources dot redhat dot com
- Date: Wed, 28 Nov 2001 14:56:14 +1300
- Subject: Re: libffi Darwin support
- References: <CABDE7C8-E3A0-11D5-BCF3-0030654E84BA@toastedmarshmallow.com>
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.