Both the WASM binary file and AOT file are supported by iwasm. The wamrc AOT compiler compiles wasm binary file to AOT file, which can also be run by iwasm. Execute the following commands to build wamrc compiler for Linux:
cdwamr-compiler./build_llvm.sh (or "./build_llvm_xtensa.sh"tosupportxtensatarget)mkdirbuild&&cdbuildcmake.. (or "cmake .. -DWAMR_BUILD_PLATFORM=darwin"forMacOS)make# wamrc is generated under current directory
For Windows:
cdwamr-compilerpythonbuild_llvm.pymkdirbuild&&cdbuildcmake..cmake--build.--configRelease# wamrc.exe is generated under .\Release directory