2023-09-28 00:56:11 +00:00
|
|
|
# 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.
|
|
|
|
|
|
|
|
|
|
|
|
``` shell
|
|
|
|
$ mkdir build
|
|
|
|
$ cd build
|
|
|
|
$ cmake ..
|
|
|
|
$ make
|
2023-11-30 00:49:58 +00:00
|
|
|
$ # It will build multi_module runtime and
|
2023-09-28 00:56:11 +00:00
|
|
|
$ # wasm file under the ./build .
|
|
|
|
$ # If you have built wamrc,
|
|
|
|
$ # aot file will also genrate.
|
2023-11-30 00:49:58 +00:00
|
|
|
$ ./multi_module mC.wasm
|
2023-09-28 00:56:11 +00:00
|
|
|
$ ...
|
2023-11-30 00:49:58 +00:00
|
|
|
$ ./multi_module mC.aot
|
2023-09-28 00:56:11 +00:00
|
|
|
$ ...
|
|
|
|
|