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
You attempt to telnet to system 192.168.1.240. You receive the following message: "Connecting To 192.168.1.240...Could not open
Serjik [45]

Answer:

firewall

Explanation:

The firewall could be used to protect the network from unauthorised access.Usually an ip could be whitelisted so it could transfer packets between allowing it connect through.

3 0
3 years ago
URGENT!!Motors and gears play an important role in the motion of robots. Discuss the different types of motors used in robotics.
seraphim [82]

Answer:There are many types of motors are available in today's market, but mostly Tiny pager motors, servo motors, linear motors, stepper motors and DC geared motors are used in industrial robots according to their application area.  

Humanoid robots can facilitate the experimental evaluation of assistive devices by providing repeatable, measurable, human-like motion while removing the difficulties and potential safety hazards associated with human trials. To ensure that the humanoid robot is providing a valid test platform, the robot must move in a similar way as a human while wearing the assistive device. This challenge is made difficult due to the inherent variability in human motion. In this paper, we propose an approach for a quantitative comparison between human and robot motion that identifies both the difference magnitude and the difference location, and explicitly handles both spatial and temporal variability of human motion. The proposed approach is demonstrated on data from robot gait and sagittal plane lifting.  

hope it helps

5 0
4 years ago
How does the post process alert the user if it detects a hardware problem during the post process?
Lesechka [4]
As a Alert down by the bar under where it says start I would think.
6 0
4 years ago
With a C program (memory map), data in _____ is initialized by the kernel to arithmetic 0 or null pointers before the program st
jolli1 [7]

Answer:

The answer is "  Uninitialized data segment ".

Explanation:

It (memory map) field whenever a C program is locked to run, the kernels must allocate information into 0 or null pointer in this section until the process runs. This variable, that is outside of any function, has been stored in uninitialized data item by the C statement (like, "long amount[1000];").  

If we did not declare the data segment, it also called bss, in which all block which begins with the symbol and is called for an old assembly language operator.

3 0
3 years ago
explain why electronic file organization is a key skill for today’s workplace. You may use a scenario from your current and/or f
sleet_krkn [62]

An electronic document is any electronic media content  that are intended to be used in either an electronic form or as printed output.

Explanation:

Electronic file organization is a key skill for today's work place for many reasons.

  • It will increase productivity and will help give a clear understanding of what documents should be filed in the shared drive system.
  • Having a sound file structure will help to improve the over all production of the organization
  • An electronic file management software system helps organize documents in various ways. So your employees can find files fast and save time. They can accomplish more work in the given amount of time.
  • Doctor offices and hospitals have digitized all paper medical records, which means they are now using electronic medical records (EMR) systems. If someone does not have organization it could potentially lead to files and or documents going in to the wrong hands.
  • Learning to use One Drive can also assist me in my present role as a student. It will help me to be organized with my assignments . I will be able to access any other important documents and data.
3 0
3 years ago
Other questions:
  • _____ software is used to play, create, and modify audio and video files.
    6·1 answer
  • A toolkit is:
    15·1 answer
  • The integer variables first and last have been declared and assigned values (with last >= first). Allocate an integer array t
    10·1 answer
  • What do you like most about brainly?
    13·2 answers
  • Desirable workplace habits and skills include:
    6·2 answers
  • Kerry wants to save her file but give it a new name. Kerry should use the ____ command
    7·1 answer
  • To remove any hidden data from your document before sharing it you should:
    8·2 answers
  • If you used a peach as a model of an animal cell, what would the peach's skin represent? A.nucleus B.cell wall C.cytoplasm D.cel
    10·2 answers
  • How do I delete my brainly account?<br> I don't need anymore.
    13·2 answers
  • PLZ HELP ME!!
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!