gcc for MRISC32
The MRISC32 back end for gcc is still in early development. Currently you can only compile very simple C programs (no C++, no libc).
sudo apt install flex bison libbison-dev libgmp-dev libmpfr-dev libmpc-dev
You also have to have an installation of MRISC32 binutils in your PATH.
Build the bootstrap version of GCC
Configure and build:
$ mkdir build $ cd build $ ../configure --target=mrisc32-elf --enable-languages=c --without-headers --with-newlib --with-gnu-as --with-gnu-ld $ make all-gcc
$ sudo make install-gcc
About this Git repo
The MRISC32 back end for gcc is maintained as a branch that is periodically rebased on top of the latest upstream master branch and force pushed to the fork repository. To update your local clone you need to:
$ git fetch origin $ git reset --hard origin/mbitsnbites/mrisc32