Maxime Devos 09cec57a96 Do some hacks to start building something. | 3 years ago | |
---|---|---|
.. | ||
doc | 3 years ago | |
examples | 3 years ago | |
grovel | 3 years ago | |
libffi | 3 years ago | |
scripts | 3 years ago | |
src | 3 years ago | |
tests | 3 years ago | |
toolchain | 3 years ago | |
uffi-compat | 3 years ago | |
.gitignore | 3 years ago | |
.travis.yml | 3 years ago | |
COPYRIGHT | 3 years ago | |
HEADER | 3 years ago | |
Makefile | 3 years ago | |
README.md | 3 years ago | |
TODO | 3 years ago | |
cffi-examples.asd | 3 years ago | |
cffi-grovel.asd | 3 years ago | |
cffi-libffi.asd | 3 years ago | |
cffi-tests.asd | 3 years ago | |
cffi-toolchain.asd | 3 years ago | |
cffi-uffi-compat.asd | 3 years ago | |
cffi.asd | 3 years ago |
CFFI, the Common Foreign Function Interface, purports to be a portable foreign function interface for Common Lisp. The CFFI library is composed of a Lisp-implementation-specific backend in the CFFI-SYS package, and a portable frontend in the CFFI package.
The CFFI-SYS backend package defines a low-level interface to the native FFI support in the Lisp implementation. It offers operators for allocating and dereferencing foreign memory, calling foreign functions, and loading shared libraries.
The CFFI frontend provides a declarative interface for defining foreign functions, structures, typedefs, enumerated types, etc. It is implemented in portable ANSI CL making use of the low-level operators exported by CFFI-SYS.
CFFI/C2FFI is an ASDF-integrated mechanism to automatically generate a complete CFFI binding for a C project using the JSON output of c2ffi. c2ffi generates its output by using LLVM/Clang as a library to parse any C project. Until CFFI/C2FFI is properly documented, please see these projects as examples: here, here, here, and here.
Please consult the manual for further details, including installation instructions.
Please visit Launchpad for bug reports and feature suggestions.