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

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!