Question: Someone decided to use the following C code as part of a benchmark to determine the performance of a computer including its memory. It has

Someone decided to use the following C code as part of a benchmark to determine the performance of a computer including its memory. It has two potential faults. What are they? 

for (i = 0; i < 100; i++) { * s+12345 } P = q  x = 0.0; for (j = 0; j < 60000; j++) { X = x + A[j] * B [j]; }

for (i = 0; i < 100; i++) { * s+12345 } P = q x = 0.0; for (j = 0; j < 60000; j++) { X = x + A[j] * B[j]; }

Step by Step Solution

3.46 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

First note that the expression p qs 12345 is static ie it ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Architecture Questions!