This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
wasm-micro-runtime/samples
Wenyong Huang a182926a73
Refactor interpreter/AOT module instance layout (#1559)
Refactor the layout of interpreter and AOT module instance:
- Unify the interp/AOT module instance, use the same WASMModuleInstance/
  WASMMemoryInstance/WASMTableInstance data structures for both interpreter
  and AOT
- Make the offset of most fields the same in module instance for both interpreter
  and AOT, append memory instance structure, global data and table instances to
  the end of module instance for interpreter mode (like AOT mode)
- For extra fields in WASM module instance, use WASMModuleInstanceExtra to
  create a field `e` for interpreter
- Change the LLVM JIT module instance creating process, LLVM JIT uses the WASM
  module and module instance same as interpreter/Fast-JIT mode. So that Fast JIT
  and LLVM JIT can access the same data structures, and make it possible to
  implement the Multi-tier JIT (tier-up from Fast JIT to LLVM JIT) in the future
- Unify some APIs: merge some APIs for module instance and memory instance's
  related operations (only implement one copy)

Note that the AOT ABI is same, the AOT file format, AOT relocation types, how AOT
code accesses the AOT module instance and so on are kept unchanged.

Refer to:
https://github.com/bytecodealliance/wasm-micro-runtime/issues/1384
2022-10-18 10:59:28 +08:00
..
basic Enhance cmake makefiles (#1390) 2022-08-18 16:27:01 +08:00
file linux-sgx: Implement SGX IPFS as POSIX backend for file interaction (#1489) 2022-09-28 13:09:58 +08:00
gui Enhance cmake makefiles (#1390) 2022-08-18 16:27:01 +08:00
littlevgl Enhance cmake makefiles (#1390) 2022-08-18 16:27:01 +08:00
multi-module samples/multi-module: Examine module registration a bit (#1595) 2022-10-14 16:37:57 +08:00
multi-thread Fix issue in multi-thread sample (#1458) 2022-09-07 12:56:50 +08:00
native-lib Fix the "register native with iwasm" stuff for macOS (#1558) 2022-10-07 15:17:36 +08:00
ref-types Enhance cmake makefiles (#1390) 2022-08-18 16:27:01 +08:00
sgx-ra Fix sample sgx-ra build error (#1544) 2022-09-30 15:57:04 +08:00
simple Enhance cmake makefiles (#1390) 2022-08-18 16:27:01 +08:00
socket-api Fix possible non null-terminated string issue in socket sample (#1612) 2022-10-17 22:45:10 +08:00
spawn-thread Make robust on choosing target assumption for X86_32 support (#1241) 2022-06-27 20:30:31 +08:00
wasm-c-api Refactor interpreter/AOT module instance layout (#1559) 2022-10-18 10:59:28 +08:00
workload Dockerfile lint errors fix (#1493) 2022-09-22 13:06:11 +08:00