Froth, and this site, are pre-alpha. This site is largely OSAI-generated documentation from the Froth repo.

Froth’s FFI is intentionally narrow. It exists to expose hardware and native services without turning the language into raw C.

Use these pages in order:

The public project FFI C surface uses froth_* and FROTH_* names. Internal runtime files may still use implementation names that are not part of the user contract.

  1. How FFI Works How C functions become ordinary Froth words.
  2. Project FFI How project-local C bindings are declared, built, and registered.
  3. Board FFI Example How maintained board bindings become Froth words and wrappers.
  4. Project FFI Example A complete project-local FFI example with manifest, C, and Froth code.