Compilers can have a profound impact on the performance of an application. Assume that for a program, compiler A results in an instruction count of 1.0E9 and has an execution time of 1.1s, and compiler B results in an instruction count of 1.2E9 and 1.5s
a. Find the average CPI for both compilers assuming a clock cycle time of 1ns.
b. Another Compiler C creates for the same code on 6.0E8 instructions, and has an average CPI of 1.1. What is the Speedup of the program using Compiler C vs Compiler A, and the Speedup of Compiler C vs. Compiler B, assuming in all cases the same clock cycle time of 1ns?
Please don't forget to give thumbs up if you are satisfied with the answers.
Compilers can have a profound impact on the performance of an application. Assume that for a...
Problem 3. (25 pts.) Compilers can have a profound impact on the performance of an application. Assume that for a program, compiler A results in a dynamic instruction count of 1 billion instructions and has an execution time of 1.1 seconds, while compiler B results in a dynamic instruction count of 1.2 billion instructions and an execution time of 1.5 seconds. A) Find the average CPI for each program given that the processor has a clock cycle time of 1...
Assume that for a program, compiler A results in a dynamic instruction count of 8.0E8 and has an execution time of 2.4 s, while compiler B results in a dynamic instruction count of 1.25E9 and an execution time of 1.8 s. a. [10] Find the average CPI for each program given that the processor has a clock cycle time of 2 ns. b. [10] Assume the compiled programs run on two different processors. If the execution times on the two...
You look at compilers as a way to improve performance. Your outdated compiler produces an instruction count of 2 times 10^9 instructions which execute in 1.3 sec. a) What is the average CPI of the program if the clock period is 0.5 ns? b) A new compiler generates only 1 times 10^9 instructions, with a CPI of 1.2. On the same processor (same clock), what speedup does the new compiler produce?
(e) Suppose we measure the code for the same program from two different compilers and obtain the following data. Assume clock rate is 3GHz, which code sequence will execute faster according to execution time? or According to MIPS? By how much? (25 pts CPI for Instructions Code from Instruction Count (billions) CPI Compiler 1 Compiler 2 9 1 3 (e) Suppose we measure the code for the same program from two different compilers and obtain the following data. Assume clock...
Compller A Compler B Execution Ti Execution Time No. Instructions meNo. Instructions b. 1.9 s 1.60E+09 1.30E+09 2.1 s 1.71 [5] <1.4> For the same program, two different compilers are used. The table above shows the execution time of the two different compiled programs. Find the average CPI for each program given that the processor has a clock cycle time of 1 ns. 1.7.2 [5] <1.4> Assume the compiled programs run on two different processors If the execution times on...
15. A given application written in Java, runs 15 seconds on a desktop computer. A new Java compiler is released that requires only .6 times as many instructions as the old compiler. Unfortunately, it increases the CPI by a factor of 1.1. How fast can we expect the application to run using the new compiler?! a. 15 X 0.6 = 8.2 seconds 1.1 applicatiely, it increquires only ads on a do 13x0.6 b. 15 X 1.1 = 27.5 seconds 0.6...
I need help with the following Computer Architecture question: Consider two different implementations, M1 and M2, of the same instruction set. There are three classes of instructions (A, B, and C) in the instruction set. M1 has a clock rate of 90 MHz and M2 has a clock rate of 80 MHz. The average number of cycles for each instruction class and their frequencies (for a typical program) are as follows: Instruction Class Machine M1 – Cycles/Instruction Class Machine M2...
c. Performance: Company A's processor and Company B's processor are benchmarked on the same program. The CPI of the component instructions that are executed in the program are shown above for each processor. Additionally, the number of instructions of each type is provided. Company A 5 Branch CPI Load/Store CPI Arithmetic CPI 7 1 Company B 4 Branch CPI Load/Store CPI Arithmetic CPI 9 1 Program Instruction Count Branch Load/Store Arithmetic CPL 1.2x109 1.67x1010 1.5x1011 i. Assume Company A has...
The results of the SPEC CPU2006 bzip2 benchmark running on an AMD Barcelona has an instruction count of 2.389E12, an execution time of 750 s, and a reference time of 9650 s. a. Find the CPI if the clock cycle time is 0.333 ns. b. Find the SPEC ratio.
Which the following is the best performance measure of a program running on two different computers: computer clock rate of computer, program execution time, total number of clock cycles for the program running on the computer, total number of high-level instructions, or total number of low-level instructions? Explain why by pointing out the limits of each performance metrics. b. What is CPI and average CPI? What is the average CPI of a machine with two types of instructions: A: CPI...