CS 105 Homework Assignment 5
Due: As Indicated by the Calendar
Use a text processing system (e.g., latex, troff, frame)
to answer any question from the midterm that you did not
get totally correct.
-
For problem 1, besides the correct answer,
put down the page number in the book where
the correct information can be found.
-
For problem 2,
make sure you understand why the parallel actions
are possible.
-
For problem 3,
make sure you check ALL entries in the cache line.
Also, be sure to understand which pieces of information
give you the sizes of the various fields.
-
For problem 4,
draw the stack just before the 'CALL' of 'gets',
being very careful about the byte order of items.
draw the stack just before the 'CALL' of 'printf',
again being very careful about the byte order of items.
-
For problem 5,
draw the stack as you enter 'func'
and use the stack to figure out the data structure.
Mike Erlinger
Last Modified Thursday, 30-Jun-2011 12:44:43 PDT