You are welcome to download Nachos to your own system. Since it uses Java, it should run on any reasonably modern system. But, user-level programs in Nachos are implemented in C and need to be compiled to the MIPS architecture. As a result, projects 2 and 3 require the installation of a MIPS cross-compiler so that you can compile C code into MIPS executables independently of the architecture that you run the compiler on.
We have installed a MIPS cross-compiler on the instructional systems for class use. But if you install Nachos on your own system, you will need to install a MIPS cross-compiler as well. We have binaries for the cross-compiler on Linux that you can download:
export ARCHDIR=/home/linux/ieng6/cs120fa20/public/mips-x86.linux-xgcc export PATH=/home/linux/ieng6/cs120fa20/public/mips-x86.linux-xgcc:$PATH
On your system, you would set them as appropriate for where you placed the cross-compiler. Note that, in the shell that uses these environment variables, they will prevent you from using the the original gcc because mips-gcc will now appear first in your PATH. If you want to use the regular gcc again in that shell, you will need to reset PATH.
There are multiple stages to building a Nachos-compatible MIPS binary (all of which are handled by the test Makefile):