summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-11-12 12:55:07 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-11-12 12:55:07 -0800
commit674c2f10a2cdb6547fc1592c2e9cb407f8fd40e6 (patch)
tree7ae66b81c0932985737a53e99f685b03c577e9a0
parent3a2768127856e7113317e5d907ead6cc41f60299 (diff)
downloadbinaryen-674c2f10a2cdb6547fc1592c2e9cb407f8fd40e6.tar.gz
binaryen-674c2f10a2cdb6547fc1592c2e9cb407f8fd40e6.tar.bz2
binaryen-674c2f10a2cdb6547fc1592c2e9cb407f8fd40e6.zip
text
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 0eb845a0a..4b5cb2751 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
Binaryen is a C++ library for WebAssembly. It can:
* **Interpret** WebAssembly. It passes 100% of the spec test suite.
- * **Compile** asm.js to WebAssembly, which together with [Emscripten](http://emscripten.org), gives you a complete compiler toolchain from C and C++ to WebAssembly (Emscripten compiles C and C++ to asm.js, Binaryen compile that to WebAssembly).
+ * **Compile** asm.js to WebAssembly, which together with [Emscripten](http://emscripten.org), gives you a complete compiler toolchain from C and C++ to WebAssembly (Emscripten compiles C and C++ to asm.js, Binaryen compiles that to WebAssembly).
* **Polyfill** WebAssembly, by running it in the interpreter compiled to JavaScript, if the browser does not yet have native support.
To provide those capabilities, Binaryen has a simple and flexible API for **representing and processing** WebAssembly modules. The interpreter, validator, pretty-printer, etc. are built on that foundation. The core of this is in [wasm.h](https://github.com/WebAssembly/binaryen/blob/master/src/wasm.h), which contains classes that define a WebAssembly module, and tools to process those. For a simple example of how to use Binaryen, see [test/example/find_div0s.cpp](https://github.com/WebAssembly/binaryen/blob/master/test/example/find_div0s.cpp), which creates a module and then searches it for a specific pattern.
@@ -85,7 +85,7 @@ Run
That will call `emcc` and then emit `a.normal.js`, a normal asm.js build for comparison purposes, and `a.wasm.js`, which contains the entire polyfill (`asm2wasm` translator + `wasm.js` interpreter).
-### C/C++ Source => asm2wasm
+### C/C++ Source => asm2wasm => WebAssembly
Using emcc you can generate asm.js files for direct parsing by `asm2wasm` on the commandline, for example using