[llvm-dev] LLVM tool-chain for RISC-V

via llvm-dev llvm-dev at lists.llvm.org
Thu May 24 08:46:00 PDT 2018


On 2018-05-22 13:35, Ahmed Samara via llvm-dev wrote:
> 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?
> 
> --
> 
> Ahmed Samara
> PhD Student Computer Engineering
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
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.
-- 
Sameer AbuAsal
Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project.


More information about the llvm-dev mailing list