Question: Consider the following code. Show how it might be compiled into generic assembly language assuming that the compiler unrolls the loop three times. All values
Consider the following code. Show how it might be compiled into generic assembly language assuming that the compiler unrolls the loop three times. All values are integers. Assume that register indirect with offset addressing is available but pointers have to be explicitly updated.
![for (int i = 0; i < 30; i++) { z [i] = 3 * (x[i] + y[i]); }](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1705/7/6/9/05565abf85f103921705769055584.jpg)
for (int i = 0; i < 30; i++) { (x[i] + y [i]); z [i] = 3 * }
Step by Step Solution
3.33 Rating (159 Votes )
There are 3 Steps involved in it
Assume that r0 r1 and r2 have been set up to point to x y a... View full answer
Get step-by-step solutions from verified subject matter experts
