D.3 Host Function Intrinsics
Instead of syscalls, the WASM backend provides browser-focused host functions:
| Intrinsic | Args | Description |
|---|---|---|
__host_log__(ptr len) | 2 | Output text to browser console |
__host_exit__(code) | 1 | Signal program exit |
__host_time__() | 0 | Current timestamp in milliseconds |
__host_random__() | 0 | Random 64-bit integer |
These are subject to change