summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Wolski <jan@wolski.fi>2016-04-15 21:17:58 +0300
committerAlon Zakai <alonzakai@gmail.com>2016-04-15 11:17:58 -0700
commit8e1d662f4e7b1611e39d6deaadc60e2ed2da7e85 (patch)
treea1fcb87edcfd7941a04f5bd0d17e877c8fbf3eb1
parent3e28445757a8904dc0927698c5b9f33d3a0caeaf (diff)
downloadbinaryen-8e1d662f4e7b1611e39d6deaadc60e2ed2da7e85.tar.gz
binaryen-8e1d662f4e7b1611e39d6deaadc60e2ed2da7e85.tar.bz2
binaryen-8e1d662f4e7b1611e39d6deaadc60e2ed2da7e85.zip
Clarified wasm.js & binaryen.js use cases (#350)
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index b0021dcf1..dc29c39e9 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,8 @@ This repository contains code that builds the following tools in `bin/`:
* **asm2wasm**: An asm.js-to-WebAssembly compiler, built on Emscripten's asm optimizer infrastructure. This is used by Emscripten in Binaryen mode when it uses Emscripten's fastcomp asm.js backend.
* **wasm2asm**: A WebAssembly-to-asm.js compiler, the reverse of `asm2wasm`. This is a work in progress.
* **s2wasm**: A compiler from the `.s` format emitted by the new WebAssembly backend being developed in LLVM. This is used by Emscripten in Binaryen mode when it integrates with the new LLVM backend.
- * **wasm.js**: wasm.js contains Binaryen components compiled to JavaScript, including the interpreter, `asm2wasm`, the S-Expression parser, etc., which allow you to load WebAssembly and execute it even if the browser doesn't have native support yet. This can be useful as a (slow) polyfill.
+ * **wasm.js**: wasm.js contains Binaryen components compiled to JavaScript, including the interpreter, `asm2wasm`, the S-Expression parser, etc., which allow you to use Binaryen with Emscripten and execute code compiled to WASM even if the browser doesn't have native support yet. This can be useful as a (slow) polyfill.
+ * **binaryen.js**: A stand alone library that exposes Binaryen methods for [parsing s-expressions and instantiating WASM modules](https://github.com/WebAssembly/binaryen/blob/master/test/binaryen.js/test.js) in JavaScript.
Usage instructions for each are below.