libffi/libffi
A portable foreign-function interface library. observed · 2026-10-20
Health v2 · maintenance only
90/100
- Activity 96
- Release rhythm 77
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 40.5
- age_days: 6230
- days_rel: 73
- days_push: 29
- n_releases_24m: 9
Adoption not part of the score
4394 stars · 838 forks observed · 2026-10-20
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
libffi is a portable C library providing a high-level interface to various calling conventions, allowing code to call compiled functions whose signatures are only known at runtime. It is the machine-dependent foundation layer used by projects like CPython's ctypes and OpenJDK to bridge interpreted and native code.
Use cases
- call native C functions at runtime with dynamically determined signatures
- build a bridge between an interpreter and compiled code
- implement ctypes-style foreign function interface bindings
- invoke functions with unknown argument types in a scripting language runtime
- port a language runtime to multiple CPU architectures and ABIs
When to choose
- you need runtime function calls into native code without compile-time signatures
- you are building an interpreter, VM, or FFI binding layer
- you need broad architecture and OS portability for calling conventions
When to avoid
- you can bind functions statically at compile time
- you need high-level type marshalling between languages (libffi only provides the low layer)
- you need a pure-language solution without native dependencies
Facets
library · maturity stable
interpreter compiler developer-tools programming-languages developer-tools cross-platform windows cross-platform cpp c ffi foreign-function-interface calling-conventions c-library runtime interop linux macos
2 sources
- readme: https://github.com/libffi/libffi · fetched 2026-10-20 · 502b1228b9be
- homepage: http://sourceware.org/libffi · fetched 2026-08-29 · c60413653cc4
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| libffi/libffi | main | 90 |
For agents
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem