This commit is contained in:
Nikolay Volf 2017-05-30 15:11:04 +04:00 committed by GitHub
parent 46778833e9
commit 221c7bbc39

View File

@ -20,7 +20,7 @@ cargo run --release --bin wasm-gas -- <input_binary.wasm> <output_binary.wasm>
## Allocators substiution (wasm-ext)
Parity WASM runtime provides simple memory allocators, if contract requires. When relied on this allocators, WASM binary size can be greatly reduce. This utility scans for `_malloc`, `_free` invokes inside the WASM binary and substitutes it with invokes of the imported `_malloc`, `_free`. Should be run before `wasm-opt` for better results.
Parity WASM runtime provides simple memory allocators, if contract requires. When relied on this allocators, WASM binary size can be greatly reduced. This utility scans for `_malloc`, `_free` invokes inside the WASM binary and substitutes it with invokes of the imported `_malloc`, `_free`. Should be run before `wasm-opt` for better results.
```
cargo run --release --bin wasm-ext -- <input_binary.wasm> <output_binary.wasm>