Using minimalistic C and WebAssembly
Provide environment variables for LLVM and Binaryen if not match default locations
export LLVM_ROOT="/usr/local/opt/llvm"
export BINARYEN_ROOT="/usr/local/opt/binaryen"
Install dependencies, build and start local server
npm i
npm start
Navigate to localhost:8080
- Use pure C language
- No Emscripten
- No
stdlib
- No heap allocations
- Compile to
wasm32
using clang