mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-11 04:58:25 +00:00
Update cheatsheets
This commit is contained in:
21
wat2wasm
Normal file
21
wat2wasm
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
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://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 {{file.wasm}}`
|
||||
|
||||
- Display simplified representation of every byte:
|
||||
|
||||
`wat2wasm -v {{file.wat}}`
|
||||
Reference in New Issue
Block a user