You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+58-42Lines changed: 58 additions & 42 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,21 +131,22 @@ Notes when working with Binaryen IR:
131
131
132
132
This repository contains code that builds the following tools in `bin/`:
133
133
134
-
***wasm-shell**: A shell that can load and interpret WebAssembly code. It can
135
-
also run the spec test suite.
134
+
***wasm-opt**: Loads WebAssembly and runs Binaryen IR passes on it.
136
135
***wasm-as**: Assembles WebAssembly in text format (currently S-Expression
137
136
format) into binary format (going through Binaryen IR).
138
137
***wasm-dis**: Un-assembles WebAssembly in binary format into text format
139
138
(going through Binaryen IR).
140
-
***wasm-opt**: Loads WebAssembly and runs Binaryen IR passes on it.
139
+
***wasm2js**: A WebAssembly-to-JS compiler. This is used by Emscripten to
140
+
generate JavaScript as an alternative to WebAssembly.
141
+
***wasm-shell**: A shell that can load and interpret WebAssembly code. It can
142
+
also run the spec test suite.
143
+
***wasm-emscripten-finalize**: Takes a wasm binary produced by llvm+lld and
144
+
performs emscripten-specific passes over it.
141
145
***asm2wasm**: An asm.js-to-WebAssembly compiler, using Emscripten's asm
142
146
optimizer infrastructure. This is used by Emscripten in Binaryen mode when it
143
147
uses Emscripten's fastcomp asm.js backend.
144
-
***wasm2js**: A WebAssembly-to-JS compiler (still experimental).
145
148
***wasm-ctor-eval**: A tool that can execute C++ global constructors ahead of
146
149
time. Used by Emscripten.
147
-
***wasm-emscripten-finalize**: Takes a wasm binary produced by llvm+lld and
148
-
performs emscripten-specific passes over it.
149
150
***binaryen.js**: A standalone JavaScript library that exposes Binaryen methods for [creating and optimizing WASM modules](https://github.com/WebAssembly/binaryen/blob/master/test/binaryen.js/hello-world.js). For builds, see [binaryen.js on npm](https://www.npmjs.com/package/binaryen) (or download it directly from [github](https://raw.githubusercontent.com/AssemblyScript/binaryen.js/master/index.js), [rawgit](https://cdn.rawgit.com/AssemblyScript/binaryen.js/master/index.js), or [unpkg](https://unpkg.com/binaryen@latest/index.js)).
150
151
151
152
Usage instructions for each are below.
@@ -224,9 +225,59 @@ Some more notes:
224
225
* See `bin/wasm-opt --help` for the full list of options and passes.
225
226
* Passing `--debug` will emit some debugging info.
0 commit comments