假设考虑条件分支指令的两种不同设计方法如下 (1) CPU A :通过比较指令设置条件码,然后测试条件码进行分支。 (2) CPU B :在分支指令中包含比较指令。 在两种CPU中,条件分支指令都占用2个时钟周期而所有其他指令占用1个时钟周期,对于CPU A ,执行的指令中分支指令占20%;由于每个分支指令之前都需要有比较指令,因此比较指令也占20%,由于CPU A 在分支时不需要比较,因此假设它的时钟周期时间比CPU B 快1.25倍,哪一种CPU更快呢?
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】Which of the following names is NOT used for EMS?
【单选题】Which of the following description about Al Gore is NOT true? The following are the descriptions about Al Gore exceptThe following are the descriptions about Al GoreThe following are the descriptions...
A.
He was the former vice president of the United States.
B.
He is the author of Earth in the Balance: Ecology and the Human Spirit.