




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Fall 2001 COSC 201 Final Exam Name: ____________________________________
a) five classical components of a computer
b) benchmark
c) instruction set architecture
a) Give 3 components of performance that are multiplied together to calculate execution time of a program:
b) Which of these components of performance are the same for the two computers in this example?
c) Which of these components of performance are different for the two computers in this example?
d) Why is clock rate by itself not a good measure of a machine's performance?
a) Rewrite the sequence of instructions below, adding the minimum number of nop instructions required to avoid all data hazards for this CPU. Do not re-order any of the instructions.
addi $t4, $zero, 10 slt $t3, $s0, $t4 # (k < 10)? beq $t3, $zero, endloop # if not, branch to end of loop
b) Describe and/or sketch the modifications you would make to the hardware in order to eliminate all nop instructions between the slt and beq instructions.
Describe two advantages of a multi-cycle CPU over a single-cycle CPU.
Describe how caches improve scalability for shared memory, SMP/UMA multiprocessors.