wasm-micro-runtime/product-mini/platforms
YAMAMOTO Takashi 5d48cfdbc0
introduce wasm_runtime_instantiate_ex2 (#4444)
* introduce wasm_runtime_instantiate_ex2

at this point, just a slightly inefficiant functionality
equivalent of wasm_runtime_instantiate_ex.
however, unlike wasm_runtime_instantiate_ex, this one is designed
to be extendable without breaking the user-visible ABI.
because the definition of InstantiationArgs2 is not exposed to
users, we can safely add new members to it.

this commit also makes wasm_runtime_instantiate_ex a wrapper
of wasm_runtime_instantiate_ex2.

if this goes well, maybe it's a good idea to apply a similar
pattern to RuntimeInitArgs, LoadArgs, SharedHeapInitArgs, etc.
i started with InstantiationArgs just because i happen to have
a need to extend it for wasi-nn.

cf.
https://github.com/bytecodealliance/wasm-micro-runtime/issues/4364
https://github.com/bytecodealliance/wasm-micro-runtime/issues/4331

* product-mini/platforms/posix: use wasm_runtime_instantiate_ex2
2025-07-14 13:06:23 +08:00
..
alios-things [refactoring] Extract read leb to a separate file, share the code between loader and mini loader (#3701) 2024-08-14 08:46:24 +08:00
android Add versioning information for libraries and executables across multiple platforms 2025-02-05 10:31:20 +00:00
common Stop pretending to support extended-const proposal (#4258) 2025-05-09 09:29:06 +08:00
cosmopolitan Add versioning information for libraries and executables across multiple platforms 2025-02-05 10:31:20 +00:00
darwin wasi-nn: apply the shared library hack to darwin as well (#4374) 2025-06-17 17:40:23 +08:00
esp-idf feat(yml): Add ESP32-P4 and ESP32-C5 support (#4270) 2025-05-19 10:33:09 +08:00
freebsd Update cmake min to 3.14 (#4175) 2025-04-02 07:13:53 +08:00
ios Add versioning information for libraries and executables across multiple platforms 2025-02-05 10:31:20 +00:00
linux Revert the location to install public headers (#4295) 2025-05-28 09:05:29 +08:00
linux-sgx Collective fix for typos and minor bugs (#4369) 2025-06-17 09:26:00 +08:00
nuttx cmake: Enhance target selection for ARM architectures with FPU (#4185) 2025-04-09 10:26:53 +08:00
posix introduce wasm_runtime_instantiate_ex2 (#4444) 2025-07-14 13:06:23 +08:00
riot Update cmake min to 3.14 (#4175) 2025-04-02 07:13:53 +08:00
rt-thread fix: correct typos and improve comments across multiple files by codespell (#4116) 2025-03-07 08:21:54 +08:00
vxworks Update cmake min to 3.14 (#4175) 2025-04-02 07:13:53 +08:00
windows Enable runtime API exposure for MSVC builds (#4287) 2025-05-28 20:30:05 +08:00
zephyr Update Dockerfile for Zephyr SDK and Zephyr-project versioning (#4335) 2025-06-06 15:05:44 +08:00