Re: FFI



Andrew Haley 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).

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.

Ah, so it just has poor/outdated documentation. That's not so bad.

I remember having some trouble with OSX/PPC with variadic something, but
it was probably the ioctl syscall, not regular function calls.

Thanks for the clarifications, everybody.

--Josh
.



Relevant Pages

  • Re: Combination of parameters??
    ... most assemblers will actually have a "|" (that's the ... "bitfields" with some constant values...in fact, ... your assembler doesn't already have Windows include files defining all ... really...I just hate to see "waste" when there's ...
    (alt.lang.asm)
  • Re: did minix can simulate in windows? -- its entirely possible....
    ... to achieve windows binary compatibility you would need to: ... other other required kernel level / userland tools (pretty much the ... ect) you could even go as far as to integrate callbacks on ... the minix side of things to provide support for the WDM (windows driver ...
    (comp.os.minix)
  • Re: PsSetCreateProcessNotifyRoutine
    ... Anton Bassov ... may have eliminated the 8 callback limit in Windows Server 2003, ... Don Burn ... process-creation callbacks. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: PsSetCreateProcessNotifyRoutine
    ... Anton Bassov ... may have eliminated the 8 callback limit in Windows Server 2003, ... Don Burn ... process-creation callbacks. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: [9fans] critique of sockets API
    ... Originally they were used to allow applications to do asynchronous I/O on earlier Windows incarnations that had no concept of threading. ... Callbacks survived the introduction of threading. ... My point was that as of some time ago, more than a decade I believe, Windows began offering all three options which may be used on their own or in tandem. ... Processing of sporadic network events, e.g. reports from a network resource, is done in auxiliary message queues. ...
    (comp.os.plan9)