Question: The program below (in machine language) is for adding two vectors A and B of length 500 to produce a vector C. The loop is
The program below (in machine language) is for adding two vectors A and B of length 500 to produce a vector C. The loop is repeated 500 times. Initialise I = 0; 20 Read A(I), Read B(I); Store C(I) = A(I) + B(I); Increment I = I +1; If I < or = 500 go to 20 Continue; Explain how a vector processor can eliminate the program sequence with just a single instruction.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
