mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-13 14:55:45 +02:00
wat2wasm: add page (#2359)
This commit is contained in:
parent
ab3d66db6b
commit
747dd0f799
1 changed files with 15 additions and 0 deletions
15
pages/common/wat2wasm.md
Normal file
15
pages/common/wat2wasm.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# 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}}`
|
Loading…
Add table
Reference in a new issue