Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QUESTION 4 (25 MARKS] (a) As a computer expert of your company, you are asked to compare the performance of two different compilers on 1
QUESTION 4 (25 MARKS] (a) As a computer expert of your company, you are asked to compare the performance of two different compilers on 1 GHz machine with four different classes of instructions, namely Class W. Class X, Class Y, and Class Z, which require one, two, three, and four cycles, respectively. Both of these compilers are employed to execute a large piece of software. For that, the first compiler uses 5 billion Class W instructions, 2 billion Class X instructions, 1 billion Class Y instructions, and 2 billion Class Z instructions. The second compiler uses 10 billion Class W instructions, 2 billion Class X instructions, 2 billion Class Y instructions, and 1 billion Class Z instruction. Accordingly, identify which compiler is preferable in terms of the MIPS (Million Instruction Per Second) in details calculation. [8 Marks] 1 Add File (b) Assume a computer architecture with 4 categories of instructions whose names and CPIs (Cycle Per Instructions) as listed in Table 1. A programmer writes a program, which he would like to run on this computer. The number of that are utilized in the program are also
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