Consider the following piece of code: for (i = 0; i < 600; i ++) A[i] =
Fantastic news! We've Found the answer you've been seeking!
Question:
Consider the following piece of code:
for (i = 0; i< 600; i ++) A[i] = a+B[i]+ A[i];
(a)Translate the above code to perform scalar and vector processing with the vector length of 64.
(b)Calculate the number of cycles required for scalar and vector processing by considering a unit cycle/instruction.
Related Book For
Computer Organization and Design The Hardware Software Interface
ISBN: 978-0124077263
5th edition
Authors: David A. Patterson, John L. Hennessy
Posted Date: