Question: The following problem concerns optimizing a procedure for maximum performance on an Intel Pentium IV with the following characteristics of the functional units: Assume there

 The following problem concerns optimizing a procedure for maximum performance on

The following problem concerns optimizing a procedure for maximum performance on an Intel Pentium IV with the following characteristics of the functional units: Assume there is one of each functional unit, array1 and array2 have the correct types, e.g. int or floating point. Assume input 1, input2, input3, out1, and out2 can be stored in registers. (a) float out1, out2, input1, input2; for (i = 0 length; i++) { out1 = input1 + array1[i]; out2 = out1 * array2[i]; } What is the CPE of this loop? _____ (The answer is in format of integer) (b) int input1, input2, input3; for (i = 0; i

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!