|
|
## Linux/Windows
|
|
|
### Ubuntu-like distros and default WSL
|
|
|
Running
|
|
|
``` sudo apt install gcc-mips-linux-gnu ```
|
|
|
will install the additional tooling needed for compiling C for the MIPS.
|
|
|
### Arch-like distros
|
|
|
An AUR package exists for `mips-elf-gcc`. By default, `makepkg` comes with the `-Werror=format-security` CFLAG enabled, turning formatting security warnings into compilation errors. Compiling `mips-elf-gcc` raises a couple of these warnings, making the package build fail. To fix this, you can overwrite the default `makepkg` CFLAGS in `/etc/makepkg.conf`.
|
|
|
## MacOS
|
|
|
Assuming you've followed the general lab environment guide to install MacPorts, running
|
|
|
``` sudo port install mips-elf-gcc ```
|
|
|
should install the additional tooling needed for compiling C for the MIPS.
|
|
|
**NOTE: Since we do not have access to an Apple machine, this is completely untested. Let us know if this doesn't work** |