Credits : Excerpt taken from here
NACHOS was rewritten in JAVA and thus it is now platform independent and can run on any machine ( provided jre and jdk are installed on it , ofcourse ).
So here's how to install it in Ubuntu ( theres nothing which can be called as "Installation" , its juz copying and pasting ! )
So first you need to get this Nachos-java.tar.gz file from here.
Just "untar" it in your home folder by :
tar -xf nachos-java.tar.gz
Now you'll get a folder named nachos with various files in it . ( make sure you paste this folder in your home directory )
You need to grant executable permission to $HOME/nachos/bin/nachos file
To do this :
chmod 777 $HOME/nachos/bin/nachos
Next thing , download the mips.x86-linux.xgcc.tar.gz from here.
Untar this file also in your home directory :
tar -xf mips.x86-linux.xgcc.tar.gz
Okey , now we need to edit some configuration files , here's how :
Or just download this edited Makefile and replace the original one.
And with this we must be done . Now goto nachos/proj1/ and run :
If you see an output like this shown below , you're done !
NACHOS was rewritten in JAVA and thus it is now platform independent and can run on any machine ( provided jre and jdk are installed on it , ofcourse ).
So here's how to install it in Ubuntu ( theres nothing which can be called as "Installation" , its juz copying and pasting ! )
So first you need to get this Nachos-java.tar.gz file from here.
Just "untar" it in your home folder by :
tar -xf nachos-java.tar.gz
Now you'll get a folder named nachos with various files in it . ( make sure you paste this folder in your home directory )
You need to grant executable permission to $HOME/nachos/bin/nachos file
To do this :
chmod 777 $HOME/nachos/bin/nachos
Next thing , download the mips.x86-linux.xgcc.tar.gz from here.
Untar this file also in your home directory :
tar -xf mips.x86-linux.xgcc.tar.gz
Okey , now we need to edit some configuration files , here's how :
- The nachos/test/Makefile , open this file with gedit and add the following lines just after the comments at the top :
Or just download this edited Makefile and replace the original one.
- The .profile file in your home directory (its hidden !), editing it wrongly can lead to troubles , better download this edited .profile and replace the original one.
And with this we must be done . Now goto nachos/proj1/ and run :
make
this compiles the BLAHBLAH.java files to BLAHBLAH.class files and stuff .
nachos
This runs the nachOS !If you see an output like this shown below , you're done !