I can build iwasm interpreter for RISC-V, but has anyone here succesfully configured and build any of the JIT or AOT options for RISC-V?
Hope it is useful
RISCV64, RISCV32 (RISC-V LP64 and RISC-V LP64D are tested) https://github.com/bytecodealliance/wasm-micro-runtime#supported-architectures-and-platforms
https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/product-mini/README.md#esp-idf
lum1n0us said:
Hope it is useful
RISCV64, RISCV32 (RISC-V LP64 and RISC-V LP64D are tested) https://github.com/bytecodealliance/wasm-micro-runtime#supported-architectures-and-platforms
https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/product-mini/README.md#esp-idf
Well, as I wrote, I can build the interpreter but what about the JIT or AOT compilers? Those does not seem to be supported for RISCV64.
Hi, the LLVM AOT is also supported, please
Build iwasm:
64-bit: cmake -DWAMR_BUILD_TARGET=RISCV64/RISCV64_LP64D/RISCV_LP64
32-bit: cmake -DWAMR_BUILD_TARGET=RISCV32/RISCV32_ILP32D/RISCV_ILP32
Generate AOT file:
64-bit: wamrc --target=riscv64 --target-abi=lp64/lp64d -o test.aot test.wasm
32-bit: wamrc --target=riscv32 --target-abi=ilp32/ilp32d -o test.aot test.wasm
For LLVM JIT, I remember it is also supported, please try adding -DWAMR_BUILD_JIT=1
when building iwasm.
Thanks, I already have an LLVM installation. Can I use that or do I really need to build the llvm that is in the WAMR tree?
eg. cmake -DLLVM_DIR=/usr/local/opt/llvm@14/lib/cmake/llvm
Thanks, but should LLVM_DIR point to the LLVM source directory or something else?
it's the directory containing cmake files. eg LLVMConfig.cmake
i sometimes use a directory under llvm build tree. eg. build/lib/cmake/llvm
Last updated: Nov 22 2024 at 16:03 UTC