Re: FFI
- From: Andrew Haley <andrew29@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 24 Dec 2008 11:03:51 -0600
Aleksej Saushev <asau@xxxxxxxx> wrote:
Josh Grams <josh@xxxxxxxxxxx> writes:
There is also libffi (which has been merged into gcc, I think, but
isn't usually installed as a user library). I don't know as much
about it. At first glance, it doesn't look so good (I can't tell
whether it works on Windows, and it's definitely missing variadic
functions and bitfields and maybe callbacks).
You're completely mistaken:
a) ffcall is still developed, but it wasn't released (write Bruno
a polite reminder to help it);
b) libffi isn't bundled with gcc (though it was in past).
Not all Linux distros bundle libffi as part of their gcc packages, but
it is bundled with gcc.
Libffi works on Windows. Bitfields and callbacks are fine. Variadic
functions is an interesting point, but AFAICR no ABI I use treats them
any differently from functions with fixed arity. Does Windows? I
can't remember.
Andrew.
.
- References:
- Your mindset about Forth?
- From: Helmar
- Re: Your mindset about Forth?
- From: Jonah Thomas
- Re: Your mindset about Forth?
- From: Helmar
- Re: Your mindset about Forth?
- From: Bernd Paysan
- Re: Your mindset about Forth?
- From: Gerry
- Re: Your mindset about Forth?
- From: Bernd Paysan
- Re: Your mindset about Forth?
- From: Gerry
- FFI (Was Re: Your mindset about Forth?)
- From: Josh Grams
- Re: FFI
- From: Aleksej Saushev
- Your mindset about Forth?
- Prev by Date: Re: Careful review
- Next by Date: Re: FFI
- Previous by thread: Re: FFI
- Next by thread: Re: FFI
- Index(es):
Relevant Pages
|