LLVM tool-chain for RISC-V

Is there a full LLVM toolchain that can produce an object file runnable by spike (the risc-v ISA simulator)?

I found some toolchains but from what I can tell, they still require that you invoke gcc to the assembly and linkage.

Is there a reason llvm-as and lld haven’t been ported or is it just because nobody has done it yet?

Hi,

LLVM\Clang have fully functional RISCV backend. You just need to enable (https://llvm.org/docs/CMake.html#id10) it in your compiler build since it is currently an experimental target. I am not sure about the linker (lld) status but you can certainly link with gnuld.