diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-03-18 21:39:12 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-03-18 21:39:12 -0700 |
commit | c8faff5ddbc7e93134763a845371b66bc2be56a4 (patch) | |
tree | cd48fbd3fc9d529908c7182aa2bcd071417e36ff | |
parent | ae4d2f092bbe973542c18a2b948838ac79af1f39 (diff) | |
download | binaryen-c8faff5ddbc7e93134763a845371b66bc2be56a4.tar.gz binaryen-c8faff5ddbc7e93134763a845371b66bc2be56a4.tar.bz2 binaryen-c8faff5ddbc7e93134763a845371b66bc2be56a4.zip |
improve docs
-rw-r--r-- | README.md | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -109,9 +109,7 @@ Pass `--debug` on the command line to see debug info, about asm.js functions as ### 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). +When using `emcc` with the `BINARYEN` option, it will use Binaryen to build to WebAssembly. This lets you compile C and C++ to WebAssembly, with emscripten using asm.js internally as a build step. Since emscripten's asm.js generation is very stable, and asm2wasm is a fairly simple process, this method of compiling C and C++ to WebAssembly is usable already. See the [emscripten wiki](https://github.com/kripken/emscripten/wiki/WebAssembly) for more details about how to use it. ### C/C++ Source ⇒ WebAssembly LLVM backend ⇒ s2wasm ⇒ WebAssembly |