Skip to content

Commit 5fd3f82

Browse files
authored
Update README.md
1 parent 3076b0f commit 5fd3f82

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/lib/lz4/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,12 @@ for whatever reason.
4141

4242
This is the WebAssembly module, loaded by `lz4-block-codec-wasm.js` using a
4343
`same-origin` fetch.
44+
45+
### `lz4-block-codec.wat`
46+
47+
The WebAssembly source code used to generate the WebAssembly module `lz4-block-codec.wasm`.
48+
49+
wat2wasm ./lz4-block-codec.wat -o ./lz4-block-codec.wasm
50+
wasm-opt ./lz4-block-codec.wasm -O4 -o ./lz4-block-codec.wasm
51+
52+
You can get `wat2wasm` at <https://github.com/WebAssembly/wabt>, and `wasm-opt` at <https://github.com/WebAssembly/binaryen>.

0 commit comments

Comments
 (0)