Question: Problem 4 : Performance tomato: Part ( a ) Above is the assembly code for the function declared as: tomato ( int array [ ]

Problem 4: Performance
tomato:
Part (a) Above is the assembly code for the function declared as: tomato(int array[], int x, int y). This function involves a
loop. How many times is this loop executed if the function is called as tomato (my_array, 2,106)? Assume that
"my_array" is an array of 250 integers. Show your work (4 points)?
52
Part (b) Based on your answer to part(a), calculate the total number of cycles it takes to execute the tomato function.
Show your work (10 points)?
Part (c) Calculate the MIPS for this program if the processor is operating at 2 GHz ? Show your work (6 points)
Part (d)If we find a way to accelerate only the load word (lw) operations, how much speed up is necessary for the lw, to
observe an overall speedup of 1.45x in the "tomato()" function? Show your work to get credit. (10points)
Problem 4 : Performance tomato: Part ( a ) Above

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 Programming Questions!