Project 0: Nachos warmup
due date April 13 (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 quarter. 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:
Nachos source is available in
~cs170/nachos. This version of Nachos
is for Intel x86 boxes running Solaris 2.4-2.6 (note that CSIL
machines are Intel x86 boxes with Solaris 2.6). Trying to build
the x86 version on a SPARC would (obviously) fail. Copy the
distribution to your directory.
- Browse through the Nachos distribution and try to understand the
directory structure. Download and print documentation from the
links off this page.
- Build Nachos: go to the top-level directory of your
Nachos directory. Build by typing gmake.
- Run the threads demo:
go to the
threads subdirectory
and type nachos.
You should see printout that looks like
this. If you don't see this, then you need to figure out why Nachos
didn't compile correctly.
- Run the userprog demo:
go to the
userprog subdirectory
and type nachos -x
../test/halt. This will bring up Nachos and will
run the program called halt
in the test directory.
Read through the source and make sure the printed result is as
expected. Try nachos -s -x
../test/halt to see how you can run Nachos in
single step mode.
- Learn about RCS (revision control system):
Find out about RCS. Read man pages for ci, co, rlog, rcs
to start off. Create RCS directories in each sub-directory. Checkin
all source files. Check them out unlocked.
Adapted from Eugene Stark's assignments for CSE 306 at SUNY at Stony
Brook and Divy Agrawal's assignments for CS170 at UCSB.