CmdID

CmdID / Commands

wasm-opt

Optimize WebAssembly binary files. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Apply default optimizations and write to a given file

wasm-opt -O input.wasm --output output.wasmIdentify

Apply all optimizations and write to a given file (takes more time, but generates optimal code)

wasm-opt -O4 input.wasm --output output.wasmIdentify

Optimize a file for size

wasm-opt -Oz input.wasm --output output.wasmIdentify

Print the textual representation of the binary to console

wasm-opt input.wasm --printIdentify