wasi-libc

Standard C library implementation for WebAssembly System Interface

brewmacoslinux
Try with needOr install directly
Source

About

Libc implementation for WebAssembly

Commands

wasi-libc

Examples

Compile C code to WebAssembly using wasi-libc$ clang --target=wasm32-wasi -c program.c -o program.o
Link compiled WebAssembly object files with wasi-libc$ wasm-ld program.o -lc -o program.wasm
Check wasi-libc installation path and headers$ ls $(brew --prefix wasi-libc)/share/wasi-sysroot