uploaded 4 weeks ago
WebAssembly Micro Runtime - A lightweight standalone WebAssembly (Wasm) runtime with small footprint, high performance and highly configurable features


# WebAssembly Micro Runtime

**A [Bytecode Alliance][BA] project**


**[Guide](**  **[Website](**  **[Chat](**

[Build WAMR](./doc/ | [Build AOT Compiler](./wamr-compiler/ | [Embed WAMR](./doc/ | [Export Native API](./doc/ | [Build Wasm Apps](./doc/ | [Samples](./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**](./core/iwasm/): A set of runtime libraries for loading and running Wasm modules. It supports several execution modes including interpreter, Ahead-of-Time compilation(AoT) and Just-in-Time compilation (JIT). The WAMR supports two JIT tiers - Fast JIT, LLVM JIT, and dynamic tier-up from Fast JIT to LLVM JIT.
- [**iwasm**](./product-mini/): The executable binary built with WAMR VMcore supports WASI and command line interface.
- [**wamrc**](./wamr-compiler/): The AOT compiler to compile Wasm file into AOT file
- Useful components and tools for building real solutions with WAMR vmcore:
  - [App-framework](./core/app-framework/ A framework for supporting APIs for the Wasm applications
  - [App-manager](./core/app-mgr/ a framework for dynamical loading the Wasm module remotely
  - [WAMR-IDE](./test-tools/wamr-ide): An experimental VSCode extension for developping WebAssembly applications with C/C++

### Key features
- Full compliant to the W3C Wasm MVP
- Small runtime binary size (~85K for interpreter and ~50K for AOT) and low memory usage
- Near to native speed by AOT and JIT
- Self-implemented AOT module loader to enable AOT working on Linux, Windows, MacOS, Android, SGX and MCU systems
- Choices of Wasm application libc support: the built-in libc subset for the embedded environment or [WASI]( for the standard libc
- [The simple C APIs to embed WAMR into host environment](./doc/, see [how to integrate WAMR](./doc/ and the [API list](./core/iwasm/include/wasm_export.h)
- [The mechanism to export native APIs to Wasm applications](./doc/, see [how to register native APIs](./doc/
- [Multiple modules as dependencies](./doc/, ref to [document](./doc/ and [sample](samples/multi-module)
- [Multi-thread, pthread APIs and thread management](./doc/, ref to [document](./doc/ and [sample](samples/multi-thread)
- [wasi-threads](./doc/, ref to [document](./doc/ and [sample](samples/wasi-threads)
- [Linux SGX (Intel Software Guard Extension) support](./doc/, ref to [document](./doc/
- [Source debugging support](./doc/, ref to [document](./doc/
- [XIP (Execution In Place) support](./doc/, ref to [document](./doc/
- [Berkeley/Posix Socket support](./doc/, ref to [document](./doc/ and [sample](./samples/socket-api)
- [Multi-tier JIT](./product-mini#linux) and [Running mode control](
- Language bindings: [Go](./language-bindings/go/, [Python](./language-bindings/python/

### Wasm post-MVP features
- [wasm-c-api](, ref to [document](doc/ and [sample](samples/wasm-c-api)
- [128-bit SIMD](, ref to [samples/workload](samples/workload)
- [Reference Types](, ref to [document](doc/ and [sample](samples/ref-types)
- [Non-trapping float-to-int conversions](
- [Sign-extension operators](, [Bulk memory operations](
- [Multi-value](, [Tail-call](, [Shared memory](

### 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)

The following platforms are supported, click each link below for how to build iwasm on that platform. Refer to [WAMR porting guide](./doc/ for how to port WAMR to a new platform.  
- [Linux](./product-mini/,  [Linux SGX (Intel Software Guard Extension)](./doc/,  [MacOS](./product-mini/,  [Android](./product-mini/, [Windows](./product-mini/, [Windows (MinGW)](./product-mini/
- [Zephyr](./product-mini/,  [AliOS-Things](./product-mini/,  [VxWorks](./product-mini/, [NuttX](./product-mini/, [RT-Thread](./product-mini/, [ESP-IDF](./product-mini/

## Getting started
- [Build VM core](./doc/ and [Build wamrc AOT compiler](./wamr-compiler/
- [Build iwasm (mini product)](./product-mini/ [Linux](./product-mini/, [SGX](./doc/, [MacOS](./product-mini/ and [Windows](./product-mini/
- [Embed into C/C++](./doc/, [Embed into Python](./language-bindings/python), [Embed into Go](./language-bindings/go)
- [Register native APIs for Wasm applications](./doc/
- [Build wamrc AOT compiler](./wamr-compiler/
- [Build Wasm applications](./doc/
- [Port WAMR to a new platform](./doc/
- [VS Code development container](./doc/
- [Samples](./samples) and [Benchmarks](./tests/benchmarks) 

### Performance and memory
- [Blog: The WAMR memory model](
- [Blog: Understand WAMR heaps]( and [stacks](
- [Blog: Introduction to WAMR running modes](
- [Memory usage tuning](./doc/ the memory model and how to tune the memory usage
- [Memory usage profiling](./doc/ how to profile the memory usage
- [Performance tuning](./doc/ how to tune the performance
- [Benchmarks](./tests/benchmarks): checkout these links for how to run the benchmarks: [PolyBench](./tests/benchmarks/polybench), [CoreMark](./tests/benchmarks/coremark), [Sightglass](./tests/benchmarks/sightglass), [JetStream2](./tests/benchmarks/jetstream)
- [Performance and footprint data]( the performance and footprint data

Project Technical Steering Committee
The [WAMR PTSC Charter](./ governs the operations of the project TSC.
The current TSC members:
- [dongsheng28849455]( - **Dongsheng Yan**, <>
- [loganek]( - **Marcin Kolny**, <>
- [lum1n0us]( - **Liang He**, <>
- [no1wudi]( **Qi Huang**, <>
- [qinxk-inter]( - **Xiaokang Qin**, <>
- [ttrenner ]( - **Trenner, Thomas**, <>
- [wei-tang]( - **Wei Tang**, <>
- [wenyongh]( - **Wenyong Huang**, <>
- [woodsmc]( - **Woods, Chris**, <>
- [xujuntwt95329]( - **Jun Xu**, <>
- [xwang98]( - **Xin Wang**, <> (chair)
- [yamt]( - **Takashi Yamamoto**, <>

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
- [Who use WAMR?](
- [WAMR Blogs](
- [Community news and events](
- [WAMR TSC meetings](


License: Custom

To add this component to your project, run: add-dependency "espressif/wasm-micro-runtime^1.3.2~2"

or download archive


  • Archive size
    Archive size: 4.25 MB
  • Downloaded in total
    Downloaded in total 18 times
  • Downloaded this version
    This version: 14 times


espressif/wasm-micro-runtime version: 1.3.2~2