CHIBI-FFI(1)
π CHIBI-FFI(1) π
okay bestie, welcome to the General Commands Manual energy of chibi-ffi β¨
πΈ NAME πΈ
chibi-ffi β generate C from Scheme stub files π¦
β¨ SYNOPSIS β¨
chibi-ffi [-c] [-f cflags] input.stub [output.c]
π DESCRIPTION π
so basically chibi-ffi reads the C function FFI definitions out of an input file π and then outputs the appropriate C wrappers into a file that has the same base name, just with the .c extension (unless you tell it otherwise, bestie, then it does what you say π
).
then you can take that C file and compile it into a shared library, like:
chibi-ffi file.stub
cc -fPIC -shared file.c -lchibi-scheme
if you pass the -c option it literally attempts compiling the generated C code for you in one step β main character behavior fr fr π. in that case, you can hand it extra flags for the C compiler with the -f option π«Ά
the FFI syntax itself is described in the manual over at /usr/share/doc/chibi-scheme/chibi.html, in the "C FFI" section π
π AUTHORS π
Alex Shinn π
π REPORTING BUGS π
Please report bugs on Github π«‘
π SEE ALSO π
chibi-scheme(1) π«
ngl this one's short and sweet and we ate π no cap
and that's a wrap bestie!! this was chibi-ffi from 0.9 (fluorine), dated 2020-08-08 πβ¨ bye icon π¦π
π¦ where this page comes from
- ubuntu jammy: chibi-scheme 0.9.1-3 Β· BSD-3-Clause
- ubuntu jammy: chibi-scheme 0.9.1-3ubuntu0.22.04.1 Β· BSD-3-Clause
- ubuntu noble: chibi-scheme 0.9.1-3ubuntu1 Β· BSD-3-Clause
- ubuntu stonking: chibi-scheme 0.12-2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms