1WABT(1) BSD General Commands Manual WABT(1)
2
4 wasm-opcodecnt — count opcode usage for instructions
5
7 wasm-opcodecnt [options] file ...
8
10 wasm-opcodecnt Read a file in the wasm binary format, and count opcode
11 usage for instructions.
12
13 The options are as follows:
14
15 --help Print a help message
16
17 --version
18 Print version information
19
20 -v, --verbose
21 Use multiple times for more info
22
23 --enable-exceptions
24 Enable Experimental exception handling
25
26 --disable-mutable-globals
27 Disable Import/export mutable globals
28
29 --disable-saturating-float-to-int
30 Disable Saturating float-to-int operators
31
32 --disable-sign-extension
33 Disable Sign-extension operators
34
35 --disable-simd
36 Disable SIMD support
37
38 --enable-threads
39 Enable Threading support
40
41 --enable-function-references
42 Enable Typed function references
43
44 --disable-multi-value
45 Disable Multi-value
46
47 --enable-tail-call
48 Enable Tail-call support
49
50 --disable-bulk-memory
51 Disable Bulk-memory operations
52
53 --disable-reference-types
54 Disable Reference types (externref)
55
56 --enable-annotations
57 Enable Custom annotation syntax
58
59 --enable-code-metadata
60 Enable Code metadata
61
62 --enable-gc
63 Enable Garbage collection
64
65 --enable-memory64
66 Enable 64-bit memory
67
68 --enable-multi-memory
69 Enable Multi-memory
70
71 --enable-extended-const
72 Enable Extended constant expressions
73
74 --enable-all
75 Enable all features
76
77 -o, --output=FILENAME
78 Output file for the opcode counts, by default use stdout
79
80 -c, --cutoff=N
81 Cutoff for reporting counts less than N
82
83 -s, --separator=SEPARATOR
84 Separator text between element and count when reporting counts
85
87 Parse binary file test.wasm and write pcode dist file test.dist
88
89 $ wasm-opcodecnt test.wasm -o test.dist
90
92 wasm-decompile(1), wasm-interp(1), wasm-objdump(1), wasm-strip(1),
93 wasm-validate(1), wasm2c(1), wasm2wat(1), wast2json(1), wat-desugar(1),
94 wat2wasm(1), spectest-interp(1)
95
97 If you find a bug, please report it at
98 https://github.com/WebAssembly/wabt/issues
99
100BSD February 8, 2023 BSD