ITeye博客

wasm工具

haoningabc · 2020-06-14 03:04 · emscripten · wasm · 开源软件 · Markdown


npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install -g webassembly

Learn-WebAssembly 第十章

如果使用llvm-wasm 参考 https://blog.csdn.net/weixin_34356555/article/details/89572081

memory.wasm在 https://github.com/killinux/wasm-stdlib-hack

mac install emcc: brew install SDL2 SDL2_image emscripten

Manually set LLVM_ROOT to /usr/local/opt/emscripten/libexec/llvm/bin and BINARYEN_ROOT to /usr/local/opt/binaryen in ~/.emscripten after running emcc for the first time

在centos7上


git clone --recursive https://github.com/WebAssembly/wabt
export GCC_HOME=/usr/local/gcc8
export PATH=$GCC_HOME/bin:$PATH
export CC=$GCC_HOME/bin/gcc
export CXX=$GCC_HOME/bin/g++

注意cmake是用的CC和CXX的环境变量,因为emcc是8.2编译的,所以编译wabt也要8.2

wasm的在线工具 https://mbebenita.github.io/WasmExplorer/ https://wasdk.github.io/WasmFiddle/

开发工具:https://webassembly.studio/

memory.wasm: https://github.com/guybedford/wasm-stdlib-hack

mame

/Users/killinux/Library/Application Support/MAME OS X/ROMs

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。