Question: Consider a program which uses five instruction types (A-E) as follows: Instruction Type Frequency CPI A 20% un 5 B 25% 3 2 C 10%

Consider a program which uses five instruction types (A-E) as follows: Instruction Type Frequency CPI A 20% un 5 B 25% 3 2 C 10% 2 D 15% 2 E 30% 4 For questions 4 and 5, Consider a system with only two classes on machine language instructions, A and B, on which A-type instructions take 4 cycles to run and B-type instructions take 1 cycle to run. 4. If a particular program is compiled for this system using default settings, the resulting code is 65% A-type Instructions and 35% B-type instructions. However, a colleague recommends a different compiler setting which reduces the number of A-type instructions by 20% while increasing the number of B-type instructions by 50%. a. Does re-compiling using the settings recommended by your colleague cause the program's execution time to increase or decrease, and by what factor? [3 marks) b. Does re-compiling using the settings recommended by your colleague cause the program's MIPS rating to increase or decrease, and by what factor? (3 marks) 5. Suppose that you have the option to purchase a new system which can run A-type instructions in only 3 cycles instead of 4 but has a 30% higher clock cycle time than your existing system. This new system will only result in a speedup it the fraction of A-type instructions in your workload is within a specific range. What is this range
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
