wasm-micro-runtime/samples/multi-module
Wenyong Huang 17d459b0d8
Merge pull request #3749 from bytecodealliance/main
Merge branch main into gitbook
2024-08-22 12:34:58 +08:00
..
src Fix some spelling issues (#3385) 2024-05-06 07:56:48 +08:00
wasm-apps Fix missing stack frame alloc/free in AOT multi-module invoke (#3562) 2024-06-24 13:56:11 +08:00
CMakeLists.txt Fix missing stack frame alloc/free in AOT multi-module invoke (#3562) 2024-06-24 13:56:11 +08:00
README.md Merge branch main into gitbook 2023-12-12 16:22:13 +08:00

description
The related code/working directory of this example resides in directory {WAMR_DIR}/samples/multi-module

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.

$ mkdir build
$ cd build
$ cmake ..
$ make
$ # It will build multi-module runtime and
$ # wasm file under the ./build .
$ # If you have built wamrc,
$ # aot file will also genrate.
$ ./multi_module mC.wasm
$ ...
$ ./multi_module mC.aot
$ ...