mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-09-05 17:32:26 +00:00

There will be two sets of binaries for iwasm and wamrc. One set without a suffix indicates there is no GC support. Another set with the suffixes "-gc" and "-gc-eh" includes GC support. Users cannot disable GC through command line options; they need to choose the appropriate set to use.
24 lines
415 B
Markdown
24 lines
415 B
Markdown
# WAMR MULTI-MODUEL SAMPLE
|
|
|
|
**WAMR supports _multi-module_ in both _interpreter_ mode and _aot_ mode.**
|
|
|
|
Multi-modules will determine the running mode based on the type of the main module.
|
|
|
|
## Interpreter mode
|
|
|
|
```bash
|
|
$ cmake -S . -B build
|
|
$ cmake --build
|
|
$ cd build
|
|
$ ./multi_module mC.wasm
|
|
```
|
|
|
|
## Aot mode
|
|
|
|
```bash
|
|
$ cmake -S . -B build -DWAMR_BUILD_AOT=1
|
|
$ cmake --build
|
|
$ cd build
|
|
$ ./multi_module mC.aot
|
|
```
|