Continuing the washer/dryer/folding example from lecture, suppose that the washer takes 20 minutes, the dryer 40, and folding 15.
Question 1: (see above) If we replace the dryer with two dryers, leaving clothes in the first for 20 minutes and then moving them to the second for another 20 minutes, we would
Question 2: (see above) Which of the following would be an example of a control dependency?
Question 3: (see above) Which of the following would be an example of a data dependency?
The first version of the pipelined addq
machine we looked at in class would give the wrong result for the following code
addq %r8, %r9
addq %r9, %r10
Question 4: (see above) Which of the following programs would also give the wrong results?
Select all that apply
Question 5: (see above) We discussed fixing this by adding nop
instructions and by having the hardware stall. If we can add stalling to the hardware without changing the hardware clock speed,
Question 6: Which is most important for a processor to seem fast to the end user?