A portable foreign-function interface library.
Browse cluster: Haskell tooling and libraries →Libffi is a portable foreign-function interface library that enables programs to call functions at runtime without knowing their arguments and types at compile time. The library provides a machine-dependent layer that bridges interpreters and compiled code by abstracting calling conventions across different architectures and operating systems. Built in C and requiring a C99-compatible compiler, libffi supports an extensive range of platforms including x86, ARM, PowerPC, MIPS, RISC-V, and many others across Linux, Windows, macOS, BSD variants, and specialized systems. The project is maintained by the libffi community and distributed through GitHub, with the latest release being version 3.8.0 from August 2026.