This repo has moved to: https://gitlab.com/mrisc32/gcc-mrisc32
This is a fork of gcc with support 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).
Ubuntu:
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.
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
Install:
$ sudo make install-gcc
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