Question: Problem 4 : Performance tomato: Part ( a ) Above is the assembly code for the function declared as: tomato ( int array [ ]
Problem : Performance
tomato:
Part a Above is the assembly code for the function declared as: tomatoint array int int This function involves a
loop. How many times is this loop executed if the function is called as tomato myarray, Assume that
myarray" is an array of integers. Show your work points
Part b Based on your answer to parta calculate the total number of cycles it takes to execute the tomato function.
Show your work points
Part c Calculate the MIPS for this program if the processor is operating at GHz Show your work points
Part dIf 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 in the "tomato function? Show your work to get credit. points
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
