mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
515 B
Plaintext
22 lines
515 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# wat2wasm
|
|
|
|
> Convert a file from the WebAssembly text format to the binary format.
|
|
> More information: <https://webassembly.github.io/wabt/doc/wat2wasm.1.html>.
|
|
|
|
- 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}}`
|