GCC 7 and above added RISC-V support, so that makes a good start. https://github.com/gcc-mirror/gcc/search?q=risc-v&type=Commits&utf8=%E2%9C%93 EXTERNAL_TOOLCHAIN is also an option, if it doesn't apply easily.