A.4. WebAssembly Binary Toolkit
The WebAssembly Binary Toolkit contains the tools that will allow you to convert between the WebAssembly binary format and the text format. The wasm2wat tool converts from the binary format to the text format, and the wat2wasm tool does the opposite, converting from the text format to the binary format. There’s even a wasm-interp tool, which allows the WebAssembly binary file to run stand-alone outside the browser, which can be useful for automated testing of the WebAssembly module.
Because browsers will use the WebAssembly text format if the user does a View Source, or for debugging if the WebAssembly module doesn’t have source maps included, having a basic understanding of the text format is important. So, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access