|
|
2 년 전 | |
|---|---|---|
| .devcontainer | 2 년 전 | |
| .github | 2 년 전 | |
| assembly-script | 3 년 전 | |
| build-scripts | 2 년 전 | |
| ci | 3 년 전 | |
| core | 2 년 전 | |
| doc | 2 년 전 | |
| language-bindings | 2 년 전 | |
| product-mini | 2 년 전 | |
| samples | 2 년 전 | |
| test-tools | 2 년 전 | |
| tests | 2 년 전 | |
| wamr-compiler | 2 년 전 | |
| wamr-sdk | 3 년 전 | |
| zephyr | 4 년 전 | |
| .clang-format | 4 년 전 | |
| .clang-tidy | 4 년 전 | |
| .gitignore | 2 년 전 | |
| ATTRIBUTIONS.md | 3 년 전 | |
| CMakeLists.txt | 2 년 전 | |
| CODE_OF_CONDUCT.md | 6 년 전 | |
| CONTRIBUTING.md | 6 년 전 | |
| LICENSE | 6 년 전 | |
| ORG_CODE_OF_CONDUCT.md | 6 년 전 | |
| README.md | 3 년 전 | |
| RELEASE_NOTES.md | 3 년 전 | |
| SConscript | 4 년 전 | |
| SECURITY.md | 4 년 전 | |
| TSC_Charter.md | 4 년 전 |
A Bytecode Alliance project
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:
The "iwasm" VM core to run WASM applications, supporting interpreter mode, AOT mode (Ahead-of-Time compilation) and JIT modes (Just-in-Time compilation, LLVM JIT and Fast JIT are supported)
The "wamrc" AOT compiler to compile WASM file into AOT file for best performance and smaller runtime footprint, which is run by "iwasm" VM Core
The application framework and the supporting APIs for the WASM applications
The dynamic management of the WASM applications
Benchmarks and Samples
The iwasm supports the following architectures:
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.
WAMR supports building the iwasm VM core only (no app framework) to the mini product. The WAMR mini product takes the WASM application file name or AOT file name as input and then executes it. For the detailed procedure, please see build WAMR VM core and build and run WASM application. Also we can click the link of each platform above to see how to build iwasm on it.
Both wasm binary file and AOT file are supported by iwasm. The wamrc AOT compiler is to compile wasm binary file to AOT file which can also be run by iwasm. Execute following commands to build wamrc compiler for Linux:
cd wamr-compiler
./build_llvm.sh (or "./build_llvm_xtensa.sh" to support xtensa target)
mkdir build && cd build
cmake .. (or "cmake .. -DWAMR_BUILD_PLATFORM=darwin" for MacOS)
make
# wamrc is generated under current directory
For Windows:
cd wamr-compiler
python build_llvm.py
mkdir build && cd build
cmake ..
cmake --build . --config Release
# wamrc.exe is generated under .\Release directory
WAMR is widely used in a lot areas, here are some cases:
By using the iwasm VM core, we are flexible to build different application frameworks for the specific domains, although it would take quite some effort.
The WAMR has offered a comprehensive framework for programming WASM applications for device and IoT usages. The framework supports running multiple applications, that are based on the event driven programming model. Here are the supporting API sets by the WAMR application framework library :
Browse the folder core/app-framework for how to extend the application framework.
The WAMR application manager supports remote application management from the host environment or the cloud through any physical communications such as TCP, UPD, UART, BLE, etc. Its modular design makes it able to support application management for different managed runtimes.
The tool host_tool communicates to the WAMR app manager for installing/uninstalling the WASM applications on companion chip from the host system. And the IoT App Store Demo shows the conception of remotely managing the device applications from the cloud.
Usually there are two tasks for integrating the WAMR into a particular project:
The WAMR SDK tools is helpful to finish the two tasks quickly. It supports menu configuration for selecting WAMR components and builds the WAMR to a SDK package that includes runtime SDK and APP SDK. The runtime SDK is used for building the native application and the APP SDK should be shipped to WASM application developers.
The WAMR samples integrate the iwasm VM core, application manager and selected application framework components.
The WAMR PTSC Charter governs the operations of the project TSC. The current TSC members:
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.
Check out the Wiki documents for more resources: