[理工] 計組 MIPS、Extime 的問題
題目:
Two implementations of a machine are one with and one without special
floating-point hardware.
Both machine have a clock rate of 1000 M HZ.
Promgram mix of operations in following.
floating-point multiply 10%
floating-point add 20%
floating-point divide 5%
integer instructions 65%
Machine with floating-point called A requires the following number of
clock cycles for each instruction.
floating-point multiply 7
floating-point add 5
floating-point divide 20
integer instructions 2
Machine without floating-point called B must the emulate the floating-point
operations using integer instructions. The integer instructions all take 2
clock cycles.
Other floating-point operations require the following number of integer
instructions.
floating-point multiply 40
floating-point add 20
floating-point divide 50
Q:If machine A needs 300 million instructions for this program ,
MIPS A is 250, MIPS B is 500, what is the execution time for this
program run on machine A and B ?
不好意思題目有點長,可以請板上大大替我求解嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 112.104.88.196
推
02/10 21:41, , 1F
02/10 21:41, 1F
推
02/10 21:44, , 2F
02/10 21:44, 2F
→
02/10 21:51, , 3F
02/10 21:51, 3F
→
02/10 22:30, , 4F
02/10 22:30, 4F
→
02/10 22:36, , 5F
02/10 22:36, 5F
→
02/10 22:48, , 6F
02/10 22:48, 6F
→
02/10 22:48, , 7F
02/10 22:48, 7F
推
02/10 22:53, , 8F
02/10 22:53, 8F
→
02/10 22:54, , 9F
02/10 22:54, 9F
推
02/11 00:09, , 10F
02/11 00:09, 10F
→
02/11 00:10, , 11F
02/11 00:10, 11F
→
02/11 00:27, , 12F
02/11 00:27, 12F
→
02/11 00:34, , 13F
02/11 00:34, 13F
→
02/11 00:50, , 14F
02/11 00:50, 14F
→
02/11 00:51, , 15F
02/11 00:51, 15F
→
02/11 00:52, , 16F
02/11 00:52, 16F
推
02/11 01:11, , 17F
02/11 01:11, 17F