Project 0: NACHOS Warm-up for CMPSC 170, Spring 2003

Due April 8, 2003 or ASAP (for your own good)

The purpose of this assignment is for you to familiarize yourself with the various tools we will be using this semester. Work through the steps outlined below, and submit your source code repository as indicated. Get started as soon as possible, since it may take you some time to accomplish some of these tasks properly.

Set up your Source Code Repository
The NACHOS source code is available in the cs170 class account under the directory called ~cs170/src/nachos.  This is version 3 running on Intel x86 with Linux.
Browse through the nachos directory in and try to understand the directory structure. Familiarize yourself with NACHOS by reading the associated documentation available in the various subdirectories.
 
Check out a working copy of NACHOS
Copy the NACHOS source code from the class account to your home directory.
 
Compile NACHOS
Build all of NACHOS by going to the top-level directory of your working copy and typing gmake.   Make sure you're using the Linux version of NACHOS and build it on a x86 machines.
 
Run the threads demo
Go to the threads subdirectory of NACHOS and type nachos. You should see printout that looks like this. If you don't see this, then you need to find out why NACHOS didn't compile correctly.
 
Run the userprog demo
Go to the userprog subdirectory of NACHOS and type nachos -x ../test/halt.  This will brign up NACHOS system and run a user program name halt under the test directory.  Read through the source codes and make sure the print out result is exactly as it should be.  You may also want to try nachos -s -x ../test/halt to see how you can run NACHOS in single step mode.
 

Last modified: 2003/03/16