CSC 406: Systems I

Homework 4

Due by 5:45 pm on Thursday, November 4



Please write precise and concise answers.

Reading

Read sections 3.1-3.10  of BO* as well as week 5, 6, 7 and 8 lecture notes.

BO* = Computer Systems by Bryant and O'Hallaron

Make sure that you work out every practice problem in *BO!  Peek at the solutions (presented at the end of the chapter) if you have to.

Assignment

Unzip file hw4.zip
$ unzip /home/lperkovi/public/hw4.zip
and move to newly created directory hw4:
$ cd hw4
This directory contains files hw4.c and Makefile. Open file hw5.c for editing and do the homework:
$ emacs hw4.c
When done, submit the homework as follows:
$ make submit
1.    Solve Problem 3.63 in BO. You solution should be an implementation of C function switch_prob(). Verify your solution by typing it up and compiling it on our class Linux VM
$ gcc -Og -o hw4 hw4.c
and then viewing the generated assembly code using a disassembler:
$ objdump -d hw4 | less

2.    Complete (at least) phase 1 of your lab 4. There is nothing to submit for this problem; I will check that you completed phase 1 by looking at

http://windriver.cdm.depaul.edu:15513/scoreboard

at 5:45pm on the homework due date.