How to use this project
brew installcmake
- git clone binaryen --depth=1
cd binaryen && cmake . && make
- Done!
Running
./binaryen/bin/asm2wasm -o add.wasm # 编译成wasm并导出到add.wasm
serve . # please install serve if your locale is not found the command
Created with CodeSandbox
brew installcmake
cd binaryen && cmake . && make
./binaryen/bin/asm2wasm -o add.wasm # 编译成wasm并导出到add.wasm
serve . # please install serve if your locale is not found the command
Created with CodeSandbox
https://codesandbox.io/s/github/qqcome110/webassembly-demo