tldr/pages/common/wat2wasm.md

16 lines
313 B
Markdown
Raw Normal View History

2018-10-01 17:18:32 +01:00
# wat2wasm
> Convert a file from the WebAssembly text format to the binary format.
- Parse and check a file for errors:
`wat2wasm {{file.wat}}`
- Write the output binary to a given file:
`wat2wasm {{file.wat}} -o {{file.wasm}}`
- Display simplified representation of every byte:
`wat2wasm -v {{file.wat}}`