diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-20 21:47:40 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-20 21:47:40 -0800 |
commit | bf599213828a42ee1723305abcba6569751298f0 (patch) | |
tree | 3e587990c830ae8c6d35ba6f92f7371c89d3d13d | |
parent | d5201343e9f494c14ecc730e632fddd5a037731e (diff) | |
download | binaryen-bf599213828a42ee1723305abcba6569751298f0.tar.gz binaryen-bf599213828a42ee1723305abcba6569751298f0.tar.bz2 binaryen-bf599213828a42ee1723305abcba6569751298f0.zip |
readme
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4,7 +4,7 @@ Binaryen is a compiler and toolchain infrastructure library for WebAssembly, wri * **Parse** and **emit** WebAssembly, supporting the current S-Expression format. * **Interpret** WebAssembly. The interpreter passes 100% of the spec test suite. - * **Compile** asm.js to WebAssembly, which together with [Emscripten](http://emscripten.org) which compiles to asm.js, gives you a complete compiler toolchain from C and C++ to WebAssembly. This passes all of the relevant part of Emscripten's test suite (everything but some odd Emscripten features like split memory). + * **Compile** asm.js to WebAssembly, which together with [Emscripten](http://emscripten.org) which compiles C and C++ to asm.js, gives you a complete compiler toolchain from C and C++ to WebAssembly. This passes all of the relevant part of Emscripten's test suite (everything but some odd Emscripten features like split memory). * **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. |