This repository is used to show how to build a RISC-V backend step by step.
$> git clone https://github.com/riscv-collab/riscv-gnu-toolchain
$> cd /path/to/riscv-gnu-toolchain
$> configure --prefix=/opt/gcc-riscv --with-arch=rv64gc --with-abi=lp64d --enable-multilib
$> make linux
$> cd /path/to/gcc-toy/toy
$> make gcc
$> make
$> make run
https://pages.dogdog.run/toolchain/gcc_toy_riscv_backend.html