Answered step by step
Verified Expert Solution
Question
1 Approved Answer
5. Consider two compilers producing machine code for a given program to be run on the same machine. The machine 's instructions are divided
5. Consider two compilers producing machine code for a given program to be run on the same machine. The machine 's instructions are divided into class a with CPI of and class B with CPI of 2. Machine language programs produced by the two compilers lead to the execution of the following number of instructions from each class: In Class A, the instruction for compiler 1 is 600M and instruction for compiler 2 is 400M. In class B, the instruction for compiler1 is 400M and instruction for the compiler2 is 400M. A) What ae the execution time s of the two programs, assuming a 1 GHz clock rate? (7pts) B) Which compiler produces faster code and by what factor? (7pts) C) Which compiler's machine language output runs at a higher MIPS rate? D) What MIPS rate for the Class B? (7pts) (4pts)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started