wasm-micro-runtime/core/iwasm/include
Enrico Loparco 6b1d81650d
Allow not copying the wasm binary in wasm-c-api and not referring to the binary in wasm/aot loader (#3389)
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.
2024-05-17 09:00:08 +08:00
..
aot_comp_option.h Implement GC (Garbage Collection) feature for interpreter, AOT and LLVM-JIT (#3125) 2024-02-06 20:47:11 +08:00
aot_export.h Add necessary comments for doxygen (#3299) 2024-04-11 07:50:08 +08:00
gc_export.h Add WASM_V128 in wasm_valkind_enum (#3412) 2024-05-14 10:22:42 +08:00
lib_export.h Add necessary comments for doxygen (#3299) 2024-04-11 07:50:08 +08:00
wasm_c_api.h Allow not copying the wasm binary in wasm-c-api and not referring to the binary in wasm/aot loader (#3389) 2024-05-17 09:00:08 +08:00
wasm_export.h Allow not copying the wasm binary in wasm-c-api and not referring to the binary in wasm/aot loader (#3389) 2024-05-17 09:00:08 +08:00