diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-11-11 20:39:45 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-11-11 20:39:45 -0800 |
commit | 4427bdc5a1697d1eb255cf95237856f5bc7796bf (patch) | |
tree | 9841a00cc3df4edd61a4ac636f9f4df015589ef8 | |
parent | a43caa75ce7293a4aea91228daf379f06817f5d8 (diff) | |
download | binaryen-4427bdc5a1697d1eb255cf95237856f5bc7796bf.tar.gz binaryen-4427bdc5a1697d1eb255cf95237856f5bc7796bf.tar.bz2 binaryen-4427bdc5a1697d1eb255cf95237856f5bc7796bf.zip |
text
-rw-r--r-- | README.md | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -6,9 +6,7 @@ Binaryen is a C++ library for processing WebAssembly. It can: * **Compile** asm.js to WebAssembly, which together with [Emscripten](http://emscripten.org), gives you a complete compiler toolchain from C and C++ 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 both classes that define a WebAssembly module, and tools to process those. - -(TODO: an example of writing a new processing pass.) +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 both 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]([wasm.h](https://github.com/WebAssembly/binaryen/blob/master/test/example/find_div0s.cpp), which creates a module and then searches it for a specific pattern. ## Tools |