[gambit-list] FFI

Mikael mikael.rcv at gmail.com
Tue Oct 11 16:41:37 EDT 2011


Hi Vijay, there is no libffi binding today. If you implement one, feel free
to release it open source via the Wiki as I'm sure it'd be appreciated by
others also. Mikael

2011/10/11 Vijay Mathew <mathew.vijay at gmail.com>

> Is there some way I can directly load a shared library into the Gambit
> interpreter?
> I am aware of the C-Interface. But I just want to load a shared
> library and call a C function that takes an integer.
> Is something like the following possible in Gambit?
>
>    > (define lib (open-lib "my.so"))
>    > (define c-fn (find-fn lib "simple-c-function"))
>    > (c-fn 100)
>    > (close-lib lib)
>
> Thanks,
>
> --Vijay
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20111011/b1f902d1/attachment.htm>


More information about the Gambit-list mailing list