diff options
author | JF Bastien <github@jfbastien.com> | 2016-03-18 14:36:30 -0700 |
---|---|---|
committer | JF Bastien <github@jfbastien.com> | 2016-03-18 14:36:30 -0700 |
commit | 7ef0e0117f522f87b56a810633b882a3421a3be7 (patch) | |
tree | bda9836e36bfb68d0e45d26292ef1c4186035138 | |
parent | 6f1cf66e71f3db6af5c2c8087e001fe0c77b0fc4 (diff) | |
download | binaryen-7ef0e0117f522f87b56a810633b882a3421a3be7.tar.gz binaryen-7ef0e0117f522f87b56a810633b882a3421a3be7.tar.bz2 binaryen-7ef0e0117f522f87b56a810633b882a3421a3be7.zip |
Make pretty with fancy Unicode ⇒ rightward double arrow
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -119,13 +119,13 @@ emcc -s BINARYEN=1 [whatever other emcc flags you want] The `BINARYEN` flag tells it to emit code using `wasm.js`, and the `BINARYEN_ROOT` config variable tells where to find `wasm.js` itself. The output `*.js` file will then contain the entire polyfill (`asm2wasm` translator + `wasm.js` interpreter). The asm.js code will be in `*.asm.js`. -### C/C++ Source => asm2wasm => WebAssembly +### C/C++ Source ⇒ asm2wasm ⇒ WebAssembly When using `emcc` with the `BINARYEN` option, it will use Binaryen to build to WebAssembly. See the [emscripten wiki](https://github.com/kripken/emscripten/wiki/WebAssembly) for more details. * Build with `EMCC_DEBUG=1` in the env to see Emscripten's debug output as it runs the various tools, and also to save the intermediate files in `/tmp/emscripten_temp`. It will save both the `.s` and `.wast` files there (in addition to other files it normally saves). -### C/C++ Source => WebAssembly LLVM backend => s2wasm => WebAssembly +### C/C++ Source ⇒ WebAssembly LLVM backend ⇒ s2wasm ⇒ WebAssembly Binaryen's `s2wasm` tool can translate the `.s` output from the LLVM WebAssembly backend into WebAssembly. You can receive `.s` output from `llc`, and then run `s2wasm` on that: |