← Back to AILP Home

WebAssembly Target

Overview

Nitpick can target WebAssembly (WASM) via LLVM's wasm32 backend.

Limitations

Current WASM limitations: - No direct syscall access (sys() not available) - No wildx (executable memory) - No POSIX threads (single-threaded only) - Limited file I/O (browser sandbox) - No FFI with native C libraries

Building for WASM

npkc --target wasm32 source.npk -o output.wasm

Related