WebAssembly prototyping. Minimal working environment to study WebAssembly and JavaScript interaction.
Install emscripten and then prepare local toolchain
npm install
-
Directly usimg
emcc
npm run build
-
With
CMake
(you may need to adjustcmake-build
script inpackage.json
, currently it is assumed that emscripten is installed underbin
folder within user's home directory)npm run cbuild
npm run serve-build
Open http://localhost:3003/index.html in your browser.
node index
- Use threads
Open http://localhost:3003/threads.html in your browser.
npm run tbuild
To translate between wasm and wat (WebAssembly Text) format
wasm2wat <file>.wasm