Document
WAMR on GitHubWAMR Blogs
  • WAMR Document Home Page
  • Basics
    • Introduction
      • WebAssembly
      • WAMR Project
      • Security Feature
    • Getting Started
      • Host Environment Preparation
      • Hello-world Program On Host
      • Docker Environment Preparation
      • Hello-world Program On Docker
      • Build And Run WASM Application
        • More Tools To Create WASM Application
  • WAMR In Practice
    • Tutorial
      • WAMR Running Modes
      • Build Tutorial
        • Build iwasm
        • Build wamrc
      • Language Embedding
        • C/C++
        • Python
        • Go
      • Debugging & IDE Support
        • WAMR Source Debugging With LLDB
        • VS Code Support
          • Enable Debugging In VS Code
          • Move LLDB Binaries
    • Advance Tutorial
      • Performance Test
        • PolyBench
        • CoreMark
        • Sightglass
        • JetStream2
      • Memory Usage Tunning
      • Application Framework
      • Remote Application Management
        • Example 1: Install/Uninstall WASM App Remotely
        • Example 2: IoT App Store Demo
      • WAMR Porting Guide
    • Features
      • Export Native APIs To WASM Applications
        • Example 1: Export C Functions to WASM
        • Example 2: Using "native-lib"
      • Multiple Modules As Dependencies
        • Multi-modules Example
      • Multi-thread, Pthread APIs And Thread Management
        • Multi-thread Example
      • Linux SGX(Intel Software Guard Extension) Support
      • Linux SGX Remote Attestation
      • XIP(Execution In Place) Support
      • Socket Support
        • Example: Use Socket Api in WAMR
      • Post-MVP Features
        • WASM C API
        • 128-bit SIMD
        • Reference Types
    • More Examples
      • File Interaction Of WASI
      • GUI Example
        • Littlevgl
        • LVGL
      • Same WASM Program Executing Concurrently
      • Build And Run Workload
    • User Case
  • Programmer's Manual
    • Programmer's Manual
      • C API Lists
  • Community
    • How To Contribute
    • WAMR On Github
    • WAMR Blogs
  • Appendix
    • Appendix A. Background Knowledge And Glossary Of Terms
    • Appendix B. WebAssembly Details
    • Appendix C. Complete WAMR Guide
Powered by GitBook
On this page
  • WebAssembly Micro Runtime
  • Getting started
  • Project Technical Steering Committee
  • License
  • More resources
  1. Appendix

Appendix C. Complete WAMR Guide

PreviousAppendix B. WebAssembly Details

Last updated 1 year ago

WebAssembly Micro Runtime

A project

    

| | | | |

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:

  • : 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.

  • : The executable binary built with WAMR VMcore which supports WASI and command line interface.

  • : The AOT compiler to compile Wasm file into AOT file

  • Useful components and tools for building real solutions with WAMR vmcore:

    • : A framework for supporting APIs for the Wasm applications

    • : A framework for dynamical loading the Wasm module remotely

    • : An experimental VSCode extension for developping WebAssembly applications with C/C++

Key features

  • Full compliant to the W3C Wasm MVP

  • Small runtime binary size (core vmlib on cortex-m4f with tail-call/bulk memroy/shared memroy support, text size from bloaty)

    • ~58.9K for fast interpreter

    • ~56.3K for classic interpreter

    • ~29.4K for aot runtime

    • ~21.4K for libc-wasi library

    • ~3.7K for libc-builtin library

  • 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 for the standard libc

  • , see and the

  • , see

  • , ref to and

  • , ref to and

  • , ref to and

  • , ref to

  • , ref to

  • , ref to

  • , ref to and

  • and

  • Language bindings: , ,

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

Getting started

Performance and memory

Project Technical Steering Committee

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

, ref to and

, ref to

, ref to and

, ,

, ,

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

, , , , ,

, , , , ,

and

: , , and

, , ,

and

and

: the memory model and how to tune the memory usage

: how to profile the memory usage

: how to tune the performance

: checkout these links for how to run the benchmarks: , , ,

: the performance and footprint data

The governs the operations of the project TSC. The current TSC members:

- Dongsheng Yan,

- Marcin Kolny,

- Liang He,

Qi Huang,

- Xiaokang Qin,

- Trenner, Thomas,

- Wei Tang,

- Wenyong Huang,

- Woods, Chris,

- Jun Xu,

- Xin Wang, (chair)

- Takashi Yamamoto,

Bytecode Alliance
Guide
Website
Chat
Build WAMR
Build AOT Compiler
Embed WAMR
Export Native API
Build Wasm Apps
Samples
VMcore
iwasm
wamrc
App-framework
App-manager
WAMR-IDE
WASI
The simple C APIs to embed WAMR into host environment
how to integrate WAMR
API list
The mechanism to export native APIs to Wasm applications
how to register native APIs
Multiple modules as dependencies
document
sample
Multi-thread, pthread APIs and thread management
document
sample
wasi-threads
document
sample
Linux SGX (Intel Software Guard Extension) support
document
Source debugging support
document
XIP (Execution In Place) support
document
Berkeley/Posix Socket support
document
sample
Multi-tier JIT
Running mode control
Go
Python
Rust
wasm-c-api
document
sample
128-bit SIMD
samples/workload
Reference Types
document
sample
Bulk memory operations
Shared memory
Memory64
Tail-call
Garbage Collection
Exception Handling
WAMR porting guide
Linux
Linux SGX (Intel Software Guard Extension)
MacOS
Android
Windows
Windows (MinGW)
Zephyr
AliOS-Things
VxWorks
NuttX
RT-Thread
ESP-IDF
Build VM core
Build wamrc AOT compiler
Build iwasm (mini product)
Linux
SGX
MacOS
Windows
Embed into C/C++
Embed into Python
Embed into Go
Embed in Rust
Register native APIs for Wasm applications
Build wamrc AOT compiler
Build Wasm applications
Port WAMR to a new platform
VS Code development container
Samples
Benchmarks
End-user APIs documentation
Blog: The WAMR memory model
Blog: Understand WAMR heaps
stacks
Blog: Introduction to WAMR running modes
Memory usage tuning
Performance tuning
Benchmarks
PolyBench
CoreMark
Sightglass
JetStream2
Performance and footprint data
WAMR PTSC Charter
dongsheng28849455
dongsheng.yan@sony.com
loganek
mkolny@amazon.co.uk
lum1n0us
liang.he@intel.com
no1wudi
huangqi3@xiaomi.com
qinxk-inter
xiaokang.qxk@antgroup.com
ttrenner
trenner.thomas@siemens.com
wei-tang
tangwei.tang@antgroup.com
wenyongh
wenyong.huang@intel.com
woodsmc
chris.woods@siemens.com
xujuntwt95329
Jun1.Xu@intel.com
xwang98
xin.wang@intel.com
yamt
yamamoto@midokura.com
Who use WAMR?
WAMR Blogs
Community news and events
WAMR TSC meetings
Memory usage profiling