[Solved]-Two Compilers Clang Gcc Using Default Compiler Options Program Chess Game Takes 6 Seconds Q37197542



We have two compilers clang and gcc. Using the default compiler options, a program (chess game) takes 6 seconds to run on processor P1 when compiled with clang, and 5 seconds when compiled with gcc. This means that gcc is 1.2 times faster with the default options: a) if we enable the gcc optimizations, we increase the CPI by 1.3 times and decrease the dynamic instruction count by 20%, what is the new speedup ? (1 points) b) If we also enable the dang compiler optimizations, we increase CPI by 70%. How much does the instruction count need to change (increase or decrease?) so that it matches the performance of the gcc compiler with the compiler optimizations enabled (part a) 1point) c) The same chess game is executed in another faster processor P2. The new processor has the same architecture but double the frequency. What is the relative performance when we use clang not optimized vs gcc optimized (part a)? (1 point) Show transcribed image text We have two compilers clang and gcc. Using the default compiler options, a program (chess game) takes 6 seconds to run on processor P1 when compiled with clang, and 5 seconds when compiled with gcc. This means that gcc is 1.2 times faster with the default options: a) if we enable the gcc optimizations, we increase the CPI by 1.3 times and decrease the dynamic instruction count by 20%, what is the new speedup ? (1 points)
b) If we also enable the dang compiler optimizations, we increase CPI by 70%. How much does the instruction count need to change (increase or decrease?) so that it matches the performance of the gcc compiler with the compiler optimizations enabled (part a) 1point)
c) The same chess game is executed in another faster processor P2. The new processor has the same architecture but double the frequency. What is the relative performance when we use clang not optimized vs gcc optimized (part a)? (1 point)
Expert Answer
Answer to We have two compilers clang and gcc. Using the default compiler options, a program (chess game) takes 6 seconds to run o… . . .
OR

