wasm-micro-runtime/samples/multi-module/README.md
liang.he@intel.com 797a442ed1 Enhance build configuration to support optional gc
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.
2025-08-31 08:33:04 +00:00

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
```