wat2wasm
translate from WebAssembly text format to the WebAssembly binary format
- Provided by: wabt (Version: 1.0.27-1)
- Report a bug
translate from WebAssembly text format to the WebAssembly binary format
wat2wasm |
[options] file |
wat2wasm translates from WebAssembly text
format to the WebAssembly binary format.
The options are as follows:
-v,
--verbose--help--debug-parser-d,
--dump-module--enable-exceptions--disable-mutable-globals--enable-saturating-float-to-int--enable-sign-extension--disable-simd--enable-threads-o,
--output=FILE-r,
--relocatable--no-canonicalize-leb128s--debug-names--no-checkParse and typecheck test.wat
$ wat2wasm test.watparse test.wat and write to binary file test.wasm
$ wat2wasm test.wat -o
test.wasmParse spec-test.wast, and write verbose output to stdout (including the meaning of every byte)
$ wat2wasm spec-test.wast
-vwasm-interp(1), wasm-objdump(1), wasm-opcodecnt(1), wasm-strip(1), wasm-validate(1), wasm2c(1), wasm2wat(1), wast2json(1), wat-desugar(1), spectest-interp(1)
If you find a bug, please report it at
https://github.com/WebAssembly/wabt/issues.