Wasm: Emscripten vs WASI-SDK: Difference between revisions
Appearance
No edit summary |
|||
| Line 7: | Line 7: | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
sudo pacman -S emscripten | sudo pacman -S emscripten | ||
export PATH="/usr/lib/emscripten/":$PATH | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 09:50, 25 November 2025
WASI-SDK dan Emscripten adalah toolchain untuk compile C/C++ menjadi WebAssembly, tetapi targetnya berbeda:
- WASI-SDK untuk environment WASI (non-web)
- Emscripten untuk browser (web platform).
cara install Emscripten
*note: saya pakai Arch Linux
sudo pacman -S emscripten
export PATH="/usr/lib/emscripten/":$PATH