MRISC32 GNU toolchain
This is a top level repository for building the MRISC32 toolchain.
The latest pre-built version of the toolchain can be found here.
Binaries are available for:
- Linux (x86_64)
- macOS (arm64 + x86_64)
- Windows (x86_64)
- Unpack the archive to a location of your choice.
PATHenvironment variable (e.g. in
Currently there are two methods for building the toolchain:
- Natively on your host machine (recommended).
- Using Docker.
The build has been tested on Ubuntu 20.04 (with GCC), macOS (with clang) and Windows (with MSYS2 and MinGW), but may work on other similar systems too.
The following packages are required (example given for Ubuntu):
sudo apt install bison build-essential curl flex texinfo
To build and install the GNU toolchain for MRISC32, do (example given for Ubuntu):
git submodule update --init --recursive ./build.sh --clean --prefix="$HOME/.local"
For more options, see:
The Docker based build will produce a toolchain for Linux hosts.
To build the GNU toolchain for MRISC32, do:
git submodule update --init --recursive ./build-in-docker.sh
The result is placed in the
out/install folder. You can create a tar archive of the folder contents, or add
out/install/bin to your PATH.