Question: Compiler optimizations may result in improvements to code size and/or performance. Consider one or more of the benchmark programs from the SPEC CPU2006 suite. Use

Compiler optimizations may result in improvements to code size and/or performance. Consider one or more of the benchmark programs from the SPEC CPU2006 suite. Use a processor available to you and the GNU C compiler to optimize the program using no optimization, ?O1, ?O2, and ?O3. Compare the performance and size of the resulting programs. Also compare your results to Figure A.21.

I Branches/calls Floating-point ALU ops lucas, level 3 11% lucas, level 2

I Branches/calls Floating-point ALU ops lucas, level 3 11% lucas, level 2 12% Loads-stores lucas, level 1 21% O Integer ALU ops lucas, level 0 100% mcf, level 3 76% mcf, level 2 76% mcf, level 1 84% mcf, level 0 100% 0% 20% 40% 60% 80% 100% Percentage of unoptimized instructions executed Program, compiler optimization level

Step by Step Solution

3.48 Rating (164 Votes )

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 Computer Architecture Questions!