[VM][OS X] Is the FFI plugin available?

Marcus Denker marcus at ira.uka.de
Wed Jan 23 11:24:23 UTC 2002


On Wed, Jan 23, 2002 at 12:10:05AM +0100, Andreas Raab wrote:
> > On Tue, Jan 22, 2002 at 12:26:20PM -0800, Martin McClure wrote:
> > > 
> > > I did look at the Unix FFI, but found that it relied on yet another 
> > > external library and didn't dig deeper there.
> > >
> > The library you need is libFFI. It was done by cygnus (now redhat).
> > The version everyone uses (1.2) does *not* run on MacOS X. But libffi
> > seems to be part of GCC (used in the Java runtime, IMHO). And that 
> > version has been portet to Darwin... but i havn't gotten it to run
> > yet.
> 
marcus at localhost(~/Desktop/gcc/libffi)$ uname -a
Darwin i09nbmarcus.atis.uni-karlsruhe.de 5.2 Darwin Kernel Version 5.2: Fri
Dec  7 21:39:35 PST 2001; root:xnu/xnu-201.14.obj~1/RELEASE_PPC  Power Macintosh powerpc

marcus at localhost(~/Desktop/gcc/libffi)$ ./ffitest 
709 return value tests run
long double return value tests ok!
2 vs 2
float arg tests ok!
strlen tests passed
double return value tests ok!
many arg tests ok!
1383096 promotion tests run
structure test 1 ok!

2.90522e-310
2.747e-321
4.55
5.66
structure test 2 ok!
246 246
structure test 3 ok!
structure test 4 ok!
Structure test 5 found GCC's structure passing bug.

Looks good. No surprises.
marcus at localhost(~/Desktop/gcc/libffi)$ 


So... first step is done. Now back to the PB docu to see how
to link this with the Squeak VM.

-- 
Marcus Denker marcus at ira.uka.de  -- Squeak! http://squeakland.org



More information about the Squeak-dev mailing list