OCaml FFI Playground
Writing traditional OCaml stubs is not always straightforward.
This repository provides three minimal examples to illustrate how OCaml can interact with C:
- add: Passing primitive data between OCaml and C.
- dot: Passing Bigarray between OCaml and C.
- point: Managing a C struct through an OCaml stub using opaque pointers.
- ISO C compiler (e.g. GCC)
- OCaml 4.14 or newer
- GNU Make
MIT License © 2026 ByteBard