Assume that we compile a program with two different compilers for the same ISA, then run the two executables on the same machine M. Version A has a dynamic instruction count of 2.0 x 109 and an execution time of 4 seconds, while version B has a dynamic instruction count of 2.5 x 109 and an execution time of 6 seconds. (a). Find the CPIs for the two executables (Version A and Version B) respectively given that machine M has a frequency of 2GHz (i.e. 2x109 Hz). (b). We further run the two executables on two different processors of the same ISA. Suppose the execution times on the two processors are the same. Using the CPIs from (a), compare the clock of the processor running Version A against the clock of the processor running Version B. Which clock is faster? By how much?
Assume that we compile a program with two different compilers for the same ISA, then run the two executables on the same machine M. Version A has a dynamic instruction count of 2.0 x 109 and an execution time of 4 seconds, while version B has a dynamic instruction count of 2.5 x 109 and an execution time of 6 seconds.
(a). Find the CPIs for the two executables (Version A and Version B) respectively given that machine M has a frequency of 2GHz (i.e. 2x109 Hz). (b). We further run the two executables on two different processors of the same ISA. Suppose the execution times on the two processors are the same. Using the CPIs from (a), compare the clock of the processor running Version A against the clock of the processor running Version B. Which clock is faster? By how much?
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images