Generated C
Loading...
C code requires the Bosatsu runtime and can be compiled with:
gcc -o fib fibonacci.c -I c_runtime c_runtime/*.c -lgc
WebAssembly (from C via Emscripten)
The C code is compiled to WebAssembly using Emscripten, allowing it to run in the browser.
This demonstrates Bosatsu's ability to target native platforms through C and then WebAssembly.