[gambit-list] more fun with c-ffi

Marc Feeley feeley at iro.umontreal.ca
Mon Feb 16 21:23:27 EST 2009


You've been looking at Gambit generated code too long... so long that  
you no longer notice the triple underscore prefix!  That is the Gambit  
prefix!

Marc

On 16-Feb-09, at 9:20 PM, Adrien Piérard wrote:

> 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, 日本語, 한국어
>
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list




More information about the Gambit-list mailing list