Question: Now suppose we measure the code for the same program from two different complers and obtain the following data: Assume that the coumputer's clock rate

Now suppose we measure the code for the same program from two different
complers and obtain the following data:
Assume that the coumputer's clock rate is 4CH?
(a) Which cmilur will execufe faster according fo CPV execution time?
(b) Which compiler will execute faster according to MIPS? (a) answer is:
A.
CPU Time1=2.5 s
CPU Time2=3.75 s
Compiler 1 is faster than Compiler 2 according to CPU Time
B.
CPU Time1=4 s
CPU Time2=3 s
Compiler 2 is faster than Compiler 1 according to CPU Time
C.
CPU Time1=10 s
CPU Time2=15 s
Compiler 1 is faster than Compiler 2 according to CPU Time
D.
CPU Time1=3.5 s
CPU Time2=2.75 s
Compiler 2 is faster than Compiler 1 according to CPU Time
(b) answer is:
A.
MIPS1=1.428
MIPS2=1.25
Compiler 1 is faster than Compiler 2 according to MIPS
B.
MIPS1=2800.14
MIPS2=3200
Compiler 2 is faster than Compiler 1 according to MIPS
C.
MIPS1=2.8
MIPS2=3.2
Compiler 2 is faster than Compiler 1 according to MIPS
D.
MIPS1=4000
MIPS2=3800
Compiler 1 is faster than Compiler 2 according to MIPS
 Now suppose we measure the code for the same program from

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!