Question: 4. Consider two compilers A and B. The values of some factors execution time and instruction count for the two compilers are as follows: Compiler
4. Consider two compilers A and B. The values of some factors execution time and instruction count for the two compilers are as follows: Compiler Execution Time Instruction Count 1.1s 1x10 1.5s 1.2 x 109 a) The clock cycle time of the processor is 1 ns (109 s) Sol. To calculate the CPI for each compiler, need to use the following formula. b) Consider that execution time for two different processors is same: Then which compiler is faster and by how much? C) Consider a new compiler. The number of instructions for new compiler 6.0E8. Calculate the speed up of new compiler using compiler A and using compiler B
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
