wast2json
convert a file in the wasm spec test format to a JSON file and associated wasm binary files
- Provided by: wabt (Version: 1.0.27-1)
- Report a bug
convert a file in the wasm spec test format to a JSON file and associated wasm binary files
wast2json |
[options] file |
wast2json reads a file in the wasm spec
test format, checks it for errors, and converts it to a JSON file and
associated wasm binary files.
The options are as follows:
-v,
--verbose--help--debug-parser--enable-exceptions--disable-mutable-globals--enable-saturating-float-to-int--enable-sign-extension--disable-simd--enable-threads--enable-multi-value--enable-tail-call-o,
--output=FILE-r,
--relocatable--no-canonicalize-leb128s--debug-names--no-checkParse 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.jsonwasm-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.