1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Bess [88]
3 years ago
6

You wrote a C application that takes 20 seconds using your desktop processor. An improved C compiler is released that requires o

nly 0.5 as many instructions as the old compiler. The CPI however increased by 1.3. How fast will the application run when compiled with the new compiler?
Computers and Technology
1 answer:
topjm [15]3 years ago
8 0

Answer:

13 Seconds

Explanation:

Let P1 denotes the performance when old compiler was used to write the C application and P2 denotes the performance when the application is compiled with the new compiler.

CPU time measures of processor performance which is the execution time from the start till end of the program application.

CPU Time of P1 = Instruction count * Average cycles per instruction * Clock cycle time

CPU Time (P1) = I * CPI * T

20 seconds = I * CPI * T

Clock cycle time (T) is also called Clock Rate. So

CPU Time of P1 = Instruction count * Average cycles per instruction * Clock Rate

ClockRate = CPU Time of P1 / Instruction count * Average cycles per instruction

Clock Rate = 20 seconds / (I * CPI )

number of instructions of application = 0.5

Increased CPI = 1.3

The performance of application when compiled with new compiler:

CPU Time of P2 =  Instructions count * Cycles per instruction * Clock Rate

                           = I * CPI * Clock rate

                          = 0.5 * 1.3 * Clock rate

As Clock Rate = 20 seconds / (I * CPI ) So

CPU Time of P2 = (0.5 I ) * 1.3 CPI) * 20/ ( I * CPI)

                          = 0.5 * 1.3 * 20

                          = 13 seconds

So the execution time of application when compiled with new compiler is 13 seconds.

You might be interested in
Why was the movable type of the printing press such a breakthrough for publishing?
guapka [62]
Movable type is not part of a printing press. Before movable type and printing presses, things had to be manually transcribed (copied by hand), which was  extremely expensive. The press mechanized copying, lowering it's cost and driving down the cost of reproduction.

Arguably, there wasn't any publishing before movable type and printing presses.
3 0
3 years ago
Read 2 more answers
Can someone help me please ??
zavuch27 [327]

Answer:

x=27-the value of 0.1 x all sides

Explanation:

subscribe to me at chrisgot ha x

6 0
3 years ago
Community gardens are public gardens where local residents can grow plants in a plot. They are very popular, so there are often
Black_prince [1.1K]

Answer:

The information obtained is

  • Figure out who has been waiting the longest
  • Make a map of the waitlisted people

Explanation:

The information obtained from the combine data set is as follows

  • Figure out who has been waiting the longest
  • Make a map of the waitlisted people

The information from the waitlist database is combined thus the overall wait time of  the participants is estimated. Also the map of people around the globe is also made possible on the basis of the second database.

4 0
4 years ago
If your computer won't connect to the internet, which of these is most likely to be the problem?
Setler79 [48]

Answer: just like rtyguj said, RAM, ROM, and O USB are all built into your computer so it would be onic

8 0
3 years ago
1) what are two functions of a pick or count condition?
viktelen [127]
1.  The best option is C) pick an object at random, and keep track of how many copies of an object are left in a game.
2.   The best option is D) clockwise and counterclockwise.
3.    your 3rd question does not seem to be clear to me.
3 0
3 years ago
Other questions:
  • How you think the new values of your generation will affect economic decisions?
    11·1 answer
  • How many water bottles must be collected to win?
    8·2 answers
  • For questions 1 – 3, use the following partial class definitions:
    11·1 answer
  • Jamie is preparing a presentation on his laptop for his college annual event. He inserts audio and video files into the presenta
    11·2 answers
  • A(n) _____ can replace many applications with one unified set of programs, making the system easier to use and more effective.
    8·1 answer
  • In cell K8, create a formula using the SUM function that calculates the total of the range D17:D20 and subtracts it from the val
    6·1 answer
  • Which of the following industries utilize computer science?
    13·1 answer
  • ____ is a technology that exists inside another device
    9·2 answers
  • Explain how power surges can affect computers and how this problem can be minimised or removed<br>​
    9·1 answer
  • ......................... and ....................... are two ways to define the text in Inkscape.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!