1WABT(1)                   BSD General Commands Manual                  WABT(1)
2

NAME

4     wast2json — convert a file in the wasm spec test format to a JSON file
5     and associated wasm binary files
6

SYNOPSIS

8     wast2json [options] file
9

DESCRIPTION

11     wast2json reads a file in the wasm spec test format, checks it for er‐
12     rors, and converts it to a JSON file and associated wasm binary files.
13
14     The options are as follows:
15
16     -v, --verbose
17             Use multiple times for more info
18
19     --help  Print this help message
20
21     --debug-parser
22             Turn on debugging the parser of wast files
23
24     --enable-exceptions
25             Enable Experimental exception handling
26
27     --disable-mutable-globals
28             Disable Import/export mutable globals
29
30     --enable-saturating-float-to-int
31             Enable Saturating float-to-int operators
32
33     --enable-sign-extension
34             Enable Sign-extension operators
35
36     --disable-simd
37             Disable SIMD support
38
39     --enable-threads
40             Enable Threading support
41
42     --enable-multi-value
43             Enable Multi-value
44
45     --enable-tail-call
46             Enable Tail-call support
47
48     -o, --output=FILE
49             output wasm binary file
50
51     -r, --relocatable
52             Create a relocatable wasm binary (suitable for linking with e.g.
53             lld)
54
55     --no-canonicalize-leb128s
56             Write all LEB128 sizes as 5-bytes instead of their minimal size
57
58     --debug-names
59             Write debug names to the generated binary file
60
61     --no-check
62             Don't check for invalid modules
63

EXAMPLES

65     Parse spec-test.wast, and write files to spec-test.json.  Modules are
66     written to spec-test.0.wasm, spec-test.1.wasm, etc.
67
68           $ wast2json spec-test.wast -o spec-test.json
69

SEE ALSO

71     wasm-interp(1), wasm-objdump(1), wasm-opcodecnt(1), wasm-strip(1),
72     wasm-validate(1), wasm2c(1), wasm2wat(1), wat-desugar(1), wat2wasm(1),
73     spectest-interp(1)
74

BUGS

76     If you find a bug, please report it at
77     https://github.com/WebAssembly/wabt/issues
78
79BSD                              July 21, 2022                             BSD
Impressum