NACHOS / Understanding Code I Didn't Write

Status
Not open for further replies.
I moved this thread from Linux to here.

I'm taking an Operating Systems class, and we're having multiple programming assigments in NACHOS (http://www.cs.washington.edu/homes/tom/nachos/) and I'm wondering if anyone has dealt with it. I'm having a lot of problems understanding the big picture, and basically figuring out how someone else's code works. So I guess I'm looking for an approach to understanding code that I didn't write, which I've never really done on a scale bigger than a single file.

Any suggestions?

-Mike
 

echu888

Ars Tribunus Militum
1,667
If its object oriented code, take the black box approach. Understand different components on a very general scale - inputs, outputs, general function. Draw a block diagram depicting the interactions between various pieces if it helps you. Hopefully the code is well written enough that you'd be able to understand what each class does from looking at the headers.

Of course since this is for an operating systems class you'll probably have to understand OS concepts to grasp what the code is doing.

Been paying attention in class??
 
Status
Not open for further replies.