Professional Documents
Culture Documents
Assignment 1
Multi-programming
Introduction to Nachos
Install Nachos on Linux
Assignment 1
Introduction
Nachos:
• Not Another Completely Heuristic Operating S
ystem
Written by Tom Anderson and his student
s at UC Berkeley
• http://www.cs.washington.edu/homes/tom/nachos/
Introduction (cont.)
An educational OS used to
• teaching monolithic kernel design and implem
entation
• doing experiments
A virtual MIPS machine
• User programs need a cross-compiler (target
MIPS)
Install Nachos
Platform: Linux , Linux over VMware or Cygwin
• Check gcc version
− gcc -v
• gcc 3.3.3 and gcc 3.2.2 are ok.
Install steps on Linux or Linux over VMware
• Get Nachos-4.0 << 作業公告 >>
• Get Cross Compiler << 作業公告 >>
• Move Cross Compiler to /
− mv ./mips-decstation.linux-xgcc.tgz /
• Untar Cross Compiler
− tar zxvf /mips-decstation.linux-xgcc.tgz
Install Nachos (cont.)
• Untar Nachos-4.0
− tar zxvf ./nachos-4.0.tar.gz
• Make Nachos-4.0
− cd./nachos-4.0/code
− make
cd nachos-4.0/code
make clean (optional)
make
• If you want to fully re-compile the source cod
e, “make clean” is required. Or make will only
re-compile the modified and related files. (sav
e time)
Trace Nachos
Read *.h and *.cc to have an overview about
the whole system and see how it is
implemented.
Documentation (A Road Map Through
Nachos)
• http://www.cs.duke.edu/~narten/110/nachos/main/main.html