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

NAME

4     wasm-opcodecnt — count opcode usage for instructions
5

SYNOPSIS

7     wasm-opcodecnt [options] file ...
8

DESCRIPTION

10     wasm-opcodecnt reads a file in the wasm binary format, and counts opcode
11     usage for instructions.
12
13     The options are as follows:
14
15     -v, --verbose
16             Use multiple times for more info
17
18     --help  Print a help message
19
20     -o, --output=FILENAME
21             Output file for the opcode counts, by default use stdout
22
23     -c, --cutoff=N
24             Cutoff for reporting counts less than N
25
26     -s, --separator=SEPARATOR
27             Separator text between element and count when reporting counts
28             expected filename argument
29

EXAMPLES

31     Parse binary file test.wasm and write pcode dist file test.dist
32
33           $ wasm-opcodecnt test.wasm -o test.dist
34

SEE ALSO

36     wasm-interp(1), wasm-objdump(1), wasm-strip(1), wasm-validate(1),
37     wasm2c(1), wasm2wat(1), wast2json(1), wat-desugar(1), wat2wasm(1),
38     spectest-interp(1)
39

BUGS

41     If you find a bug, please report it at
42     .:
43           https://github.com/WebAssembly/wabt/issues
44
45BSD                              June 20, 2019                             BSD
Impressum