[gambit-list] more fun with c-ffi

Adrien Piérard pierarda at iro.umontreal.ca
Mon Feb 16 21:20:22 EST 2009


By the way, I'm surprised that there is no prefix to that NAME part to avoid
possible name clashes with other libs, especially in a FFI.
I'd expect ___gambc_result or something like that, shouldn't I?


2009/2/17 Pavel Dudrenov <dudrenov at gmail.com>

> Does Marc have the ___NAME stuff documented somewhere? I know that if
> I read the compiler code I'd probably figure it out, but someone might
> have done that already. From the small bits and peaces I've seen,
> mainly from FFI code in gambit, it reminds me of an assembly/register
> machine in C.
>
> Pavel
>
>
> On Mon, Feb 16, 2009 at 3:17 PM, Guillaume Cartier
> >   ((c-lambda () unsigned-long "___result = GCFunction;")))
>

-- 
Français, English, 日本語, 한국어
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20090217/076b2ed6/attachment.htm>


More information about the Gambit-list mailing list