1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-13 19:15:29 +02:00
tldr/pages/common/wat2wasm.md

17 lines
403 B
Markdown
Raw Normal View History

2018-10-01 21:48:32 +05:30
# wat2wasm
> Convert a file from the WebAssembly text format to the binary format.
> More information: <https://github.com/WebAssembly/wabt>.
2018-10-01 21:48:32 +05:30
- Parse and check a file for errors:
`wat2wasm {{file.wat}}`
- Write the output binary to a given file:
`wat2wasm {{file.wat}} {{[-o|--output]}} {{file.wasm}}`
2018-10-01 21:48:32 +05:30
- Display simplified representation of every byte:
`wat2wasm {{[-v|--verbose]}} {{file.wat}}`