Question

Assume that for a program, compiler A results in a dynamic instruction count of 8.0E8 and...

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 processors are the same, and the clock rate of processor A is 4GHz, find the clock rate of processor B? c. [10] A new compiler is developed that uses only 6.0E8 instructions and has an average CPI of 1.25. What is the speedup of using this new compiler versus using compiler A or B on the original processor?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

CPU clock Cycle as CPI = Instruction Count COSA = (a tomas ) (xrom) = 1.5 che = ( 1.88 V 2x1018 / 5 ) Sibskie) I 1:25*109 - 0by Processor 1 is running als code. Processor 2 95 running Bs code. Given that execution times are some. Execution Time = IC> Let Ċ be the new compiler. Frec Time = IC X CPI* CPU clock Time The amount by which cs Code 95 faster as given b48 With A

Add a comment
Know the answer?
Add Answer to:
Assume that for a program, compiler A results in a dynamic instruction count of 8.0E8 and...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Problem 3. (25 pts.) Compilers can have a profound impact on the performance of an application....

    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...

  • 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...

    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...

  • You look at compilers as a way to improve performance. Your outdated compiler produces an instruction...

    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?

  • Compilers can have a profound impact on the performance of an application. Assume that for a...

    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...

  • c. Performance: Company A's processor and Company B's processor are benchmarked on the same program. The...

    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...

  • Assume for arithmetic, load/store, and branch instructions, a processor has CPls of 3, 15, and 7, respectively. Also as...

    Assume for arithmetic, load/store, and branch instructions, a processor has CPls of 3, 15, and 7, respectively. Also assume that on a single processor a program requires the execution of 3.12E9 arithmetic instructions, 1.75E9 load/store instructions, and 512Million branch instructions. Assume that each processor has a 2.5GHz clock frequency. Assume that, as the program is parallelized to run over multiple cores, the number of arithmetic and load/store instructions per processor divided by 0.8xp ( where p is the number of...

  • Consider the implemented of two different processors P1, and P2 with the same instruction set architecture...

    Consider the implemented of two different processors P1, and P2 with the same instruction set architecture (ISA). P1 has a 2 GHZ clock rate and P2 has a 2.5 GHz clock rate. a. what is the clock cycle for each processor? b. If the CPI for a program A is 2, which processor has the highest performance? c. if the processors P1 execute the program in 2 seconds, find the number of instructions. d. We are trying to reduce the...

  • The results of the SPEC CPU2006 bzip2 benchmark running on an AMD Barcelona has an instruction...

    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.

  • Make sure to show how you solved the problem step-by-step: Consider three different processors P1, P2,...

    Make sure to show how you solved the problem step-by-step: Consider three different processors P1, P2, and P3, executing the same instruction set. P1 has a clock cycle time of 300 picosecond and a CPI (clock cycles per instruction) of 1.5. P2 has a clock cycle time of 400 picosecond and a CPI of 1.0. P3 has a clock cycle time of 250 picosecond and a CPI of 2.0. P1 is running a program with 10 instructions. P2 is running...

  • Consider three different processors P1, P2, and P3 executing the same instruction set. P1 has a...

    Consider three different processors P1, P2, and P3 executing the same instruction set. P1 has a 3 GHz clock rate and a CPI of 1.5. P2 has a 3 GHz clock rate and a CPI of 1.0. P3 has a 2.5 GHz clock rate and has a CPI of 2.2. a. Which processor has the highest performance expressed in instructions per second? b. If each processor executes a program in 35 seconds, find the number of cycles and the number...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT