wasm-micro-runtime/core/iwasm/aot
Enrico Loparco 7692f32a94
Allow overriding max memory on module instantiation (#3198)
This PR adds a max_memory_pages parameter to module instantiation APIs,
to allow overriding the max memory defined in the WASM module.

Sticking to the max memory defined in the module is quite limiting when
using shared memory in production. If targeted devices have different
memory constraints, many wasm files have to be generated with different
max memory values. And device constraints may not be known in advance.

Being able to set the max memory value during module instantiation allows
to reuse the same wasm module, e.g. by retrying instantiation with different
max memory value.
2024-03-05 17:53:26 +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 large model (--size-level=0) with LLVM 18 (#3057) 2024-01-19 19:43:41 +08:00
aot_intrinsic.c Add "--enable-builtin-intrinsics=<flags>" option to wamrc (#2341) 2023-07-06 18:20:35 +08:00
aot_intrinsic.h Implement i32.div_s (#1792) 2022-12-13 10:48:51 +08:00
aot_loader.c Use indirect call in pre-checker function to avoid relocation in XIP mode (#3142) 2024-02-27 11:17:57 +08:00
aot_reloc.h Implement GC (Garbage Collection) feature for interpreter, AOT and LLVM-JIT (#3125) 2024-02-06 20:47:11 +08:00
aot_runtime.c Allow overriding max memory on module instantiation (#3198) 2024-03-05 17:53:26 +08:00
aot_runtime.h Allow overriding max memory on module instantiation (#3198) 2024-03-05 17:53:26 +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