CSE3101 Fall 2004 Final Exam, open book, open notes. Name _______________
1. Circle T for True, F for False (5 pts each).
ANSWER
F Reading an array forwards is faster than reading it backwards.
T If the same memory location is read twice in rapid succession,
the second read is usually faster.
F A conditional branch taken 50% of the time is faster on average
than a branch taken 99% of the time.
T If the throughput of * is faster than its latency, then ((a*b)*(c*d))
can be computed faster than (((a*b)*c)*d).
F Priveliged instructions can only be executed in protected mode.
2-4: A vector dot product computes the sum of the pairwise products of
arrays a and b of n elements, for example:
sum = 0;
for (i=0; i