./nachos [-d debugFlags]
: Causes certain debugging messages to be printed, where legaldebugFlags
are+
: turn on all debug messagest
: threadss
: locks, semaphores, condition varsi
: interrupt emulationm
: machine emulation (USER_PROGRAM)d
: disk emulation (FILESYS)f
: file system (FILESYS)a
: address spaces (USER_PROGRAM)n
: network emulation (NETWORK)- Example usage:
./nachos -d +
: will turn on all debug messages
- Example usage:
./nachos [-e] filename
: Execute user program infilename
- Example usage:
./nachos -e file1 -e file2
: executing file1 and file2.
- Example usage:
./nachos [-h]
: Prints help message./nachos [-m int]
: Sets this machine's host id inint
(needed for the network)- Example usage:
./nachos -m 1
: Sets this machine's host id to 1
- Example usage:
./nachos [-n float]
: Sets the network reliability infloat
- Example usage:
./nachos -n 1
: Sets the network reliability to 1
- Example usage:
./nachos [-rs randomSeed]
: Sets random seed inrandomSeed
- Example usage:
./nachos -rs 123
: Sets random seed to 123
- Example usage:
./nachos [-s]
: Print machine status during the machine is on. (debugUserProg = TRUE
inuserprog/userkernel.cc
)./nachos [-u]
: Prints entire set of legal flags./nachos [-z]
: Prints copyright string