wasm-micro-runtime/core/iwasm/aot
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
..
arch aot_reloc_x86_64.c: Suggest to try --size-level=0 as well (#3067) 2024-01-23 13:00:19 +08:00
debug Fix aot debugger compilation error on windows (#3370) 2024-04-29 10:38:43 +08:00
aot_intrinsic.c Fix some more spelling issues (#3393) 2024-05-08 09:30:29 +08:00
aot_intrinsic.h Add cmake flag to control aot intrinsics (#3261) 2024-04-01 11:26:05 +08:00
aot_loader.c 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
aot_perf_map.c Enhance wasm loading with LoadArgs and support module names (#3265) 2024-04-07 15:04:35 +08:00
aot_perf_map.h Enhance wasm loading with LoadArgs and support module names (#3265) 2024-04-07 15:04:35 +08:00
aot_reloc.h Enhance GC subtyping checks (#3317) 2024-04-18 12:32:01 +08:00
aot_runtime.c aot: Make precheck functions use short-call for xtensa (#3418) 2024-05-13 16:55:00 +08:00
aot_runtime.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
iwasm_aot.cmake Fix windows AOT hw bound check (#2475) 2023-08-18 10:16:03 +08:00
SConscript Add ia32 support and fix compiling issue for RT-Thread (#730) 2021-09-07 10:20:14 +08:00