Assume a program requires the execution of [tex]50\times 10^6 FP[/tex] instructions, [tex]110 \times 10^6 INT[/tex] instructions, [tex]80\times 10^6 L/S[/tex] instructions, and [tex]16 \times 10^6[/tex] branch instructions. The CPI for each type of instruction is 1, 1, 4, and 2, respectively. Assume that the processor has a 2 GHz clock rate.
By 0.256 sec we must improve the CPI of FP instructions if we want the program to run two times faster.
How to calculate the execution time?
There are total of [tex]50\times 10^6 FP[/tex] instructions, [tex]110 \times 10^6 INT[/tex] instructions, [tex]80\times 10^6 L/S[/tex] instructions, and [tex]16 \times 10^6[/tex] branch instructions.
To find the execution time:
[tex]\text {execution time} \text=\frac{\sum ^4_{i=1} number of instruction_i\times CPI_i}{\text {clock rate} \text} \\\text {execution time} \text= \frac{50 \times 10^6\times 1+110\times 10^6\times 1+80 \times 10^6 \times 4+16\times 10^6\times 2}[/tex] divided by 2GHz
This is equal to 0.256 sec.
To learn more about , refer to:
brainly.com/question/21134002
#SPJ4