Re:GNU toolchain for RISC-V including GCC
by MobiusHorizons on Friday April 14, 2023 @01:41AM
(#35565898)
you don't even need a dedicated cross compiler if you have clang installed (eg the standard clang you can install from homebrew, or the one shipped with freebsd). you just have to pass it a few flags to target risc v. `clang --target=riscv32 -march=rv32i -mabi=ilp32`
Yes, and I have done this.
I love llvm/clang.
... which is indeed a very solved problem. Most distributions have RISC-V toolchains packaged and readily available.