mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-16 02:15:23 +02:00
16 lines
403 B
Markdown
16 lines
403 B
Markdown
# wat2wasm
|
|
|
|
> Convert a file from the WebAssembly text format to the binary format.
|
|
> More information: <https://github.com/WebAssembly/wabt>.
|
|
|
|
- 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}}`
|
|
|
|
- Display simplified representation of every byte:
|
|
|
|
`wat2wasm {{[-v|--verbose]}} {{file.wat}}`
|