FFI Library

Lua JIT Home LuaJIT Download ⇩ Installation Running Extensions FFI Library FFI Tutorial ffi.* API FFI Semantics jit.* Library Lua/C API Status Changes FAQ Performance on x86/x64 on ARM on PPC on PPC/e500 on MIPS Wiki » Mailing List Sponsors The FFI library allows calling external C functions and using C data structures from pure Lua code. The FFI library largely obviates the need to write tedious manual Lua/C bindings in C. No need to learn a separate binding language — it parses plain C declarations! These can be cut-n-pasted from C header files or reference manuals. It's up to the task of binding large libraries without the need for dealing with fragile binding generators. The FFI library is tightly integrated into LuaJIT (it's not available as a separate module). The code generated by the JIT-compiler for accesses to...

Linked on 2019-12-06 20:09:20 | Similar Links