CFFI-Grovel

Cffi-grovel automates parts of FFI writing, in much the same way sb-grovel? does. It is bundled with cffi-unix and cffi-net, all part of one package. Specifically, it is useful for binding to APIs that have multiple implementations, such as POSIX; it determines such things as structure layout and type size at compile-time. Optionally, it integrates with asdf to be a mostly-transparent part of the build process.

Internally, cffi-grovel is most similar to autoconf in how it operates: A Lisp template file is processed to generate and compiles a small C program which is executed to generate the final Lisp code. The advantage of this is that there is no need to worry about quirks in how the system headers are located, parsed, and processed, because they are handled by cc.

On the cffi-net homepage, you can read the manual and download release tarballs.

If you want the very latest changes, you can check out the version repository with darcs, from http://cffi-net.accela.net/darcs/cffi-net/. You can also browse the source online with the darcsweb view.


Library


This page is linked from: cffi-net   cffi-unix   IOlib-POSIX   Suggested Programming Projects  

CLiki pages can be edited by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively