mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 15:32:05 +00:00
6b1d81650d
Add flag `LoadArgs.clone_wasm_binary` to control whether to clone the wasm/aot binary in wasm-c-api module. If false, API `wasm_module_new_ex` won't clone the binary, which may reduce the footprint. Add flag `LoadArgs.wasm_binary_freeable` to control whether the wasm/aot binary may be freed after instantiation for wamr API `wasm_runtime_load_ex`, if yes, then for some running modes, the wasm/aot module doesn't refer to the input binary again so developer can free it after instantiation to reduce the footprint. And add API `wasm_module_is_underlying_binary_freeable` and `wasm_runtime_is_underlying_binary_freeable` to check whether the input binary can be freed after instantiation for wasm-c-api and wamr api. And add sample to illustrate it. |
||
---|---|---|
.. | ||
pics | ||
build_wamr.md | ||
build_wasm_app.md | ||
devcontainer.md | ||
embed_wamr_spawn_api.md | ||
embed_wamr.md | ||
export_native_api.md | ||
linux_sgx.md | ||
memory_tune.md | ||
memory_usage.md | ||
multi_module.md | ||
other_wasm_compilers.md | ||
perf_tune.md | ||
port_wamr.md | ||
pthread_impls.md | ||
pthread_library.md | ||
ref_types.md | ||
release_ack.md | ||
roadmap.md | ||
semantic_version.md | ||
socket_api.md | ||
source_debugging_aot.md | ||
source_debugging_interpreter.md | ||
source_debugging.md | ||
wasm_c_api.md | ||
xip.md |