欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

wasm工具 博客分类: emscriptenwasm wasm 

程序员文章站 2024-03-05 20:59:01
...
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
相关标签: wasm