add new chinese translations
This commit is contained in:
20
pages.zh/common/wasm-opt.md
Normal file
20
pages.zh/common/wasm-opt.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# wasm-opt
|
||||
|
||||
> 优化 WebAssembly 二进制文件。
|
||||
> 更多信息:<https://github.com/webassembly/binaryen>。
|
||||
|
||||
- 应用默认优化并写入指定文件:
|
||||
|
||||
`wasm-opt -O {{input.wasm}} -o {{output.wasm}}`
|
||||
|
||||
- 应用所有优化并写入指定文件(耗时更长,但生成最佳代码):
|
||||
|
||||
`wasm-opt -O4 {{input.wasm}} -o {{output.wasm}}`
|
||||
|
||||
- 为文件优化大小:
|
||||
|
||||
`wasm-opt -Oz {{input.wasm}} -o {{output.wasm}}`
|
||||
|
||||
- 将二进制文件的文本表示打印到控制台:
|
||||
|
||||
`wasm-opt {{input.wasm}} --print`
|
Reference in New Issue
Block a user