WABT(1) | General Commands Manual | WABT(1) |
wast2json
—
convert a file in the wasm spec test format to a JSON file
and associated wasm binary files
wast2json |
[options] file |
wast2json
Read a file in the wasm spec
test format, check it for errors, and convert it to a JSON file and
associated wasm binary files.
The options are as follows:
--help
--version
-v
,
--verbose
--debug-parser
--enable-exceptions
--disable-mutable-globals
--disable-saturating-float-to-int
--disable-sign-extension
--disable-simd
--enable-threads
--enable-function-references
--disable-multi-value
--enable-tail-call
--disable-bulk-memory
--disable-reference-types
--enable-annotations
--enable-code-metadata
--enable-gc
--enable-memory64
--enable-multi-memory
--enable-extended-const
--enable-all
-o
,
--output=FILE
-r
,
--relocatable
--no-canonicalize-leb128s
--debug-names
--no-check
Parse spec-test.wast, and write files to spec-test.json. Modules are written to spec-test.0.wasm, spec-test.1.wasm, etc.
$ wast2json spec-test.wast -o
spec-test.json
wasm-decompile(1), wasm-interp(1), wasm-objdump(1), wasm-opcodecnt(1), wasm-strip(1), wasm-validate(1), wasm2c(1), wasm2wat(1), wat-desugar(1), wat2wasm(1), spectest-interp(1)
If you find a bug, please report it at
https://github.com/WebAssembly/wabt/issues.
June 19, 2024 | Debian |