Assume it takes an average of 2.5 clock cycles to execute an instruction in a one address

Question:

Assume it takes an average of 2.5 clock cycles to execute an instruction in a one address machine language (that is, each individual instruction can reference at most one memory location). Estimate the number of clock cycles it would take to execute the C loop that follows if the code is compiled without optimization.

Explain your answer.

for (i=0; i<100; i++) a[i] = 0;

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: