Leopold Toetsch wrote:


On Oct 28, 2005, at 22:22, Nick Glencross wrote:

Guys,

As mentioned on the list yesterday I started evaluating ffcall as a way of providing NCI functionality.

 http://www.haible.de/bruno/packages-ffcall.html


I've downloaded it and had a short look into sources. The list of supported platforms is quite impressive. OTOH it looks a bit under documented to me.

The page that I've linked to is a bit bland, but the manual pages for the 4 routines are very thorough. It's being able to create the closures which made this library stand out, as that would allow us to create callbacks with any library. Still haven't looked under the hood to see how on earth that's possible.


I've now got a working POC for function calls, and although callbacks don't work yet, they're not far off. All but 11 of the 59 NCI tests pass, and those that don't work exercise callbacks or reading back values from types for which I haven't done yet.


That's a lot for this early stage. Good work.

I was hoping to have shiny callbacks too, but something bad was happening with the arguments being passed around, but I've got to the bottom of that nasty.

As far as PIR/PASM code, the interface is unchanged, although I would like to suggest that at some point the newclass signature include the return type in common with other opcodes, as hopefully we can support this.


You are talking about new_callback ?

Yes, thought one thing, typed another,

Nick

Reply via email to