- https://github.com/kripken/emscripten/wiki/WebAssembly emsdkの
sdk-incoming-64bit
入れる - https://github.com/WebAssembly/sexpr-wasm-prototype
- https://github.com/WebAssembly/binaryen
~/.emscripten
にBINARYEN_ROOT = 'path/to/binaryen'
を追記。
emcc -O3 input.cpp -o foo.html -s BINARYEN=1
path/to/sexpr-wasm-prototype/out/sexpr-wasm foo.wast -o foo.wasm
cp foo.wast.mappedGlobals foo.wasm.mappedGlobals
でpython -m SimpleHTTPServer
とかでみる