問題詳情

3. For a specific CPU design, there are three instruction classes as depicted in Table 1 and run at aclock rate of 100 MHz.


For a given program, a compiler can produce the following executed instruction counts asdepicted in Table 2. Please calculate the average CPI of this compiler.


(A) 4
(B) 2
(C) 1.25
(D) 0.5
(E) All of the above are wrong.

參考答案

答案:C
難度:計算中-1
書單:沒有書單,新增

用户評論

K】評論

CPI:clock cycle per instruction(10*1+1*3+1*2)/(10+1+1)=1.25