A new compiler can reduce the number of load instructions


1) A program has the following dynamic distribution of instructions: arithmetic 70%, load/store 12% and branch 18%. On CPU A, the arithmetic instructions take 2 cycle, load/store 6 cycles and branch 3 cycles. The average CPI of that program on CPU A is 2.66

2) A new compiler can reduce the number of load instructions by half. Load account for 2/3 of all load/store instructions.

Compute the new CPI on CPU A.

Which version of the program would be faster? the new one or the old one

3) A new CPU (B) for the same ISA is being designed. Its clock cycle time is half of that of CPU A. However the load/store and branch instructions take twice as many cycles.

Compute the new average CPI.

Which one is faster, CPU A or B?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: A new compiler can reduce the number of load instructions
Reference No:- TGS02900706

Expected delivery within 24 Hours