Options (1)
-o, --outputbooleanApply default optimizations and write to a given file
Example:
wasm-opt -O {{input.wasm}} {{[-o|--output]}} {{output.wasm}}Examples (4)
Apply default optimizations and write to a given file
wasm-opt -O input.wasm [-o|--output] output.wasmApply all optimizations and write to a given file (takes more time, but generates optimal code)
wasm-opt -O4 input.wasm [-o|--output] output.wasmOptimize a file for size
wasm-opt -Oz input.wasm [-o|--output] output.wasmPrint the textual representation of the binary to console
wasm-opt input.wasm --printmade by @shridhargupta | data from tldr-pages