Question: 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 

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

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 Operating System Questions!