WebAssembly Micro Runtime (WAMR)
Go to file
TianlongLiang 8a55a1e7a1
Shared heap enhancements for Interpreter and AOT (#4400)
Propose two enhancements:

- Shared heap created from preallocated memory buffer: The user can create a shared heap from a pre-allocated buffer and see that memory region as one large chunk; there's no need to dynamically manage it(malloc/free). The user needs to make sure the native address and size of that memory region are valid.
- Introduce shared heap chain: The user can create a shared heap chain, from the wasm app point of view, it's still a continuous memory region in wasm app's point of view while in the native it can consist of multiple shared heaps (each of which is a continuous memory region). For example, one 500MB shared heap 1 and one 500 MB shared heap 2 form a chain, in Wasm's point of view, it's one 1GB shared heap.

After these enhancements, the data sharing between wasm apps, and between hosts can be more efficient and flexible. Admittedly shared heap management can be more complex for users, but it's similar to the zero-overhead principle. No overhead will be imposed for the users who don't use the shared heap enhancement or don't use the shared heap at all.
2025-07-04 10:44:51 +08:00
.devcontainer Update Docker image for latest version of external libraries & tools (#2374) 2023-07-24 17:43:13 +08:00
.github CI: add wamr_wasi_extensions to the release assets (#4425) 2025-07-01 19:32:01 +08:00
build-scripts Refactor copy callstack feature (#4401) 2025-06-24 20:38:30 +08:00
ci Collective fix (#4413) 2025-06-26 10:20:40 +08:00
core Shared heap enhancements for Interpreter and AOT (#4400) 2025-07-04 10:44:51 +08:00
doc deprecate legacy WAMR-specific "wasi_nn" module (#4382) 2025-06-19 14:32:26 +08:00
language-bindings Collective fix for typos and minor bugs (#4369) 2025-06-17 09:26:00 +08:00
product-mini docs: fix cmake variable typo (#4441) 2025-07-02 09:37:29 +08:00
samples Shared heap enhancements for Interpreter and AOT (#4400) 2025-07-04 10:44:51 +08:00
test-tools Update cmake min to 3.14 (#4175) 2025-04-02 07:13:53 +08:00
tests Shared heap enhancements for Interpreter and AOT (#4400) 2025-07-04 10:44:51 +08:00
wamr-compiler Shared heap enhancements for Interpreter and AOT (#4400) 2025-07-04 10:44:51 +08:00
wamr-sdk Separate app-manager and app-framework from WAMR (#3129) 2024-02-20 18:12:36 +08:00
wamr-wasi-extensions CI: build wamr-wasi-extensions (#4394) 2025-06-27 12:28:46 +08:00
zephyr zephyr: add module.yml and fix riscv compile error (#763) 2021-09-24 17:43:02 +08:00
.clang-format Customize clang-format coding styles based on Mozilla template (#770) 2021-10-06 09:54:36 +08:00
.clang-tidy Customize clang-format coding styles based on Mozilla template (#770) 2021-10-06 09:54:36 +08:00
.dockerignore Refactor Dockerfile and update .dockerignore for wasi-nn tests; adjust map-dir parameters in smoke test script (#4158) 2025-04-10 11:59:59 +08:00
.gitignore Ignore temporary file from aider (#3787) 2024-09-13 09:43:44 +08:00
ADOPTERS.md doc: Add ADOPTERS.md (#3324) 2024-04-24 16:17:00 +08:00
ATTRIBUTIONS.md Fix some compile warnings and typos (#3854) 2024-10-15 16:04:58 +08:00
CMakeLists.txt Refactor copy callstack feature (#4401) 2025-06-24 20:38:30 +08:00
CODE_OF_CONDUCT.md Restore some files and fix minor issues of SGX platform (#144) 2019-11-21 10:30:57 +08:00
CODEOWNERS Add Tianlong into code owners (#3970) 2024-12-24 20:19:40 +08:00
CONTRIBUTING.md fix: correct typos and improve comments across multiple files by codespell (#4116) 2025-03-07 08:21:54 +08:00
idf_component.yml feat(yml): Add ESP32-P4 and ESP32-C5 support (#4270) 2025-05-19 10:33:09 +08:00
LICENSE Remove unused files and update license header of some files (#138) 2019-11-11 20:38:49 -06:00
ORG_CODE_OF_CONDUCT.md Recover files deleted accidentally in last commit (#143) 2019-11-20 21:31:43 +08:00
README.md Collective fix: fix some typos (#4337) 2025-06-06 15:06:57 +08:00
RELEASE_NOTES.md Collective fix for typos and minor bugs (#4369) 2025-06-17 09:26:00 +08:00
SConscript Add ia32 support and fix compiling issue for RT-Thread (#730) 2021-09-07 10:20:14 +08:00
SECURITY.md Refer to BA security policy (#635) 2021-05-19 19:59:23 +08:00
TSC_Charter.md Implement most missing wasm-c-api APIs (#303) (#676) 2021-07-28 21:53:37 +08:00

WebAssembly Micro Runtime

A Bytecode Alliance project

GuideWebsiteChat

Build WAMR | Build AOT Compiler | Embed WAMR | Export Native API | Build Wasm Apps | Samples

WebAssembly Micro Runtime (WAMR) is a lightweight standalone WebAssembly (Wasm) runtime with small footprint, high performance and highly configurable features for applications cross from embedded, IoT, edge to Trusted Execution Environment (TEE), smart contract, cloud native and so on. It includes a few parts as below:

  • VMcore: A set of runtime libraries for loading and running Wasm modules. It supports rich running modes including interpreter, Ahead-of-Time compilation(AoT) and Just-in-Time compilation (JIT). WAMR supports two JIT tiers - Fast JIT, LLVM JIT, and dynamic tier-up from Fast JIT to LLVM JIT.
  • iwasm: The executable binary built with WAMR VMcore which supports WASI and command line interface.
  • wamrc: The AOT compiler to compile Wasm file into AOT file
  • Useful components and tools for building real solutions with WAMR vmcore:
    • App-framework: A framework for supporting APIs for the Wasm applications
    • App-manager: A framework for dynamical loading the Wasm module remotely
    • WAMR-IDE: An experimental VSCode extension for developping WebAssembly applications with C/C++

Key features

Wasm post-MVP features

Supported architectures and platforms

The WAMR VMcore supports the following architectures:

  • X86-64, X86-32
  • ARM, THUMB (ARMV7 Cortex-M7 and Cortex-A15 are tested)
  • AArch64 (Cortex-A57 and Cortex-A53 are tested)
  • RISCV64, RISCV32 (RISC-V LP64 and RISC-V LP64D are tested)
  • XTENSA, MIPS, ARC

The following platforms are supported, click each link below for how to build iwasm on that platform. Refer to WAMR porting guide for how to port WAMR to a new platform.

Getting started

Performance and memory

Project Technical Steering Committee

The WAMR PTSC Charter governs the operations of the project TSC. The current TSC members:

License

WAMR uses the same license as LLVM: the Apache 2.0 license with the LLVM exception. See the LICENSE file for details. This license allows you to freely use, modify, distribute and sell your own products based on WAMR. Any contributions you make will be under the same license.

More resources