FFI (was: RE: [UPDATES] 30 new updates for 2.8alpha)
Raab, Andreas
Andreas.Raab at disney.com
Wed Feb 9 21:53:55 UTC 2000
Nope - You need libffi for *compiling* the plugin (it's statically linked to
avoid redistribution of several DSOs and it's small anyways).
Andreas
> -----Original Message-----
> From: Stephan Rudlof [mailto:sr at evolgo.de]
> Sent: Wednesday, February 09, 2000 11:40 AM
> To: squeak at cs.uiuc.edu
> Cc: recipient list not shown
> Subject: Re: FFI (was: RE: [UPDATES] 30 new updates for 2.8alpha)
>
>
> Is it correct that I need a 'libffi' from cygnus in addition to the
> SqueakFFIPrims plugin to run this code under Linux?
>
> From sqUnixFFI.c:
>
> * NOTES: The Unix version of the FFI support code relies on libffi
> from
> * http://sourceware.cygnus.com/libffi/
>
> Stephan
>
>
> Bert Freudenberg wrote:
> >
> > On Sun, 6 Feb 2000, Raab, Andreas wrote:
> >
> > > For those of you who want to play with this ...
> >
> > Works like a charm on Linux:
> >
> > "Say Hello in the console"
> > (ExternalLibraryFunction
> > name: 'puts' module: nil callType: 0
> > returnType: ExternalType long
> > argumentTypes: {ExternalType string})
> > invokeWith: 'Hello World!'
> >
> > or, the problem of getting the local hostname:
> >
> > | buf |
> > buf _ ByteArray new: 256.
> > (ExternalLibraryFunction
> > name: 'gethostname' module: nil callType: 0
> > returnType: ExternalType long
> > argumentTypes: {ExternalType char asPointerType.
> > ExternalType long})
> > invokeWith: buf with: buf size.
> > (buf copyUpTo: 0) asString
> >
> > This one seems to need a byte array - perhaps Strings may not be
> modified?
> >
> > > I'll put out some more information on this soon.
> >
> > Oh. I'll wait then ;-)
> >
> > -Bert-
>
> --
> Stephan Rudlof (sr at evolgo.de)
> "Genius doesn't work on an assembly line basis.
> You can't simply say, 'Today I will be brilliant.'"
> -- Kirk, "The Ultimate Computer", stardate 4731.3
More information about the Squeak-dev
mailing list
|