Question

Performance depends on several software and hardware components: the algorithm, programming language, compiler, instruction set architecture,...

Performance depends on several software and hardware components: the algorithm, programming language, compiler, instruction set architecture, and hardware architecture. Which specific performance term(s) (IC, CPI or CT) does each one of these components affects and how?

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

How the Performance is affected by several Software and Hardware components?

Before we look into how the performance of a program depends on the algorithm, the language, the compiler, the instruction set architecture as well as the actual hardware, we must first look into the Performance equation.

Please refer to the figure below:

Note:

IC  stands for Instruction Count.

CPI stands for Cycles per Instruction.

CT stands for Seconds per Cycle.

1. Compiler (Instruction Count and Cycles per Instruction affected)

As the compiler determines the translation of the source language instructions into computer instruction the efficiency of the compiler affects both the instruction count and the cycles per instruction. Compiler optimization can help reduce instruction count as well as improve CPI through a good selection of instruction combination as well as through the use of registers.


2. Algorithm (Instruction Count affected and Cycles per Instruction possibly affected)

The algorithm determines the number of source program instructions executed and hence the number of processor instructions executed. CPI may be affected due to the bias towards slower or faster instructions. Eg. a program will have a higher CPI if an algorithm uses more floating-point operations.


3. Programming Language (Instruction Count and Cycles per Instruction affected)

As statements in the language are translated to processor instructions, we are able to determine the instruction count. Due to various feature of a programming language, the CPI might also be affected. Eg. An objected oriented programming language with heavy support for data abstraction will require indirect calls, which will use higher-CPI instructions.


4. Instruction Set Architecture (Instruction Count, Seconds per Cycle and Cycles per Instruction affected)

The instruction set architecture affects all three aspects of CPU performance since it affects the cost in cycles per instruction, the overall clock rate of the processor, and the instructions needed for a function.

5. Hardware (Seconds per Cycle and Cycles per Instruction affected)

The hardware does not keep track of the value of executed programs hence neglecting the instruction count. However, the hardware determines the overall clock rate and cost of cycles per instruction.

Add a comment
Know the answer?
Add Answer to:
Performance depends on several software and hardware components: the algorithm, programming language, compiler, instruction set architecture,...
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
  • Topics 1. MIPS instruction set architecture (ISA). 2. Performance. 3. MIPS datapath and control. Exercise 1...

    Topics 1. MIPS instruction set architecture (ISA). 2. Performance. 3. MIPS datapath and control. Exercise 1 Consider the memory and register contents shown below. Registers Ox0100 FFF8 13 ($t 5) 14 ($t6) 0x0100 FFFC 0x0101 0000 Memory 0x0000 0000 0x0001 1100 0x0A00 со00 0x1234 4321 OxBAOO OOBB 15 OXAAAA 0000 0x1111 1010 0x7FFF FFFD 0x0100 FFFO 0x0101 0008 (St7) Ox0101 0004 16 ($80) 0x0101 0008 17 ($sl) Show what changes and give the new values in hexadecimal after the following...

  • Design and implement a C Language program that measures the performance of given processors. There are...

    Design and implement a C Language program that measures the performance of given processors. There are several metrics that measure the performance of a processor. We will be using the following 3 measures: 1.CPI (clock cycles per instruction) = #clock cycles /#instructions 2.CPU execution time = #instructions x CPI x clock cycle time . cylce time = 1/CPU clock rate in hertz units 3.MIPS (mega instructions per second)= #instrucrions/ CPU X 1000000 Typically, processors’ performance is measured using a wide...

  • CHAPTER 10: BEHIND THE SCENES: SOFTWARE PROGRAMMING Web Project: Programming Languages The building blocks of programming...

    CHAPTER 10: BEHIND THE SCENES: SOFTWARE PROGRAMMING Web Project: Programming Languages The building blocks of programming languages and how programmers need to select the right programming language depends on the problems. There are many programming languages to learn and then decide which is best suited to complete a specific task. Search the Internet to find the five top-rated programming languages. Write a brief paper describing each of the five programming languages and include at least one example of the type...

  • 2018 CIS360: Info Tech Hardware & Software 6. Short answer questions Answer the following questions in...

    2018 CIS360: Info Tech Hardware & Software 6. Short answer questions Answer the following questions in the space below: a) b) c) (2 points) Name any five components of the LMC computer and their real-world equivalents (2 points) State any two guidelines that define a von Neumann architecture (2 points) The LMC computer executes instructions sequentially except when which type of instruction is encountered? (2 points) What is a register? Where is it located? What's the benefit of incorporating registers...

  • Need help with this project please! Please name the compiler and software used, would really appr...

    Need help with this project please! Please name the compiler and software used, would really appreciate that information. Don't bother doing the report section on this assignment either. Me and my group will handle it. This is a group project. Group size should be exactly 2 (unless approved earlier by the instructor). Only ne mi imi ma Design a security architecture for a smart electric metering infrastructure. Smart electric meters have embedded hardware for cellular connectivity, and are able to...

  • Suppose a typical program has an instruction mix of 40%, 15%, 20%, and 25% for instruction...

    Suppose a typical program has an instruction mix of 40%, 15%, 20%, and 25% for instruction types A, B, C, and D respectively. On processor P1, the CPIs for these instruction types are 1, 2, 3, and 4 respectively, and the clock rate is 2GHz. One representative program, S, executes 1 million instructions. (a) What is P1’s throughput? Don’t forget that the unit of throughput (in this context) is MIPS. (b) How long does S take to run on P1?...

  • Multiple Choice 11. The ________ is the agreed-upon interface between all the software that runs on...

    Multiple Choice 11. The ________ is the agreed-upon interface between all the software that runs on the machine and the hardware that executes it. It allows you to talk to the machine. A) hardware protocol B) software protocol C) machine control architecture D) instruction set architecture 12. A ________ consists of an arithmetic logic unit and a control unit. A) processor B) computer C) register D) program 13. ________ are typically used by companies for specific applications such as data...

  • Explain what enterprise resource planning (ERP) systems. Outline several of their key characteristics. Describe in reasonable...

    Explain what enterprise resource planning (ERP) systems. Outline several of their key characteristics. Describe in reasonable detail how a company leverages an ERP system and how its operations are improved after installing an ERP system like SAP. Explain how a supply chain management system helps an organization make its operations more efficient What is Upstream and Downstream management of the supply chain? Explain the concept of “Supply Network”, its benefits, and how technology made this concept available Explain the difference...

  • The questions below deal with Microsoft Visual Studio 2012 Reloaded, under the Visual Basic programming language....

    The questions below deal with Microsoft Visual Studio 2012 Reloaded, under the Visual Basic programming language. The book ISBN number that I am using is: 978-1-285-08416-9 or the UPC code is: 2-901285084168-1. Question 1 Visual Basic 2012 is an object-oriented programming language, which is a language that allows the programmer to use ____________________ to accomplish a program�s goal. Question 2 An application that has a Web user interface and runs on a server is called a(n) ____________________ application. Question 3...

  • . What is a programmable logic controller (PLC)?12. The , Identify four tasks in addition to...

    . What is a programmable logic controller (PLC)?12. The , Identify four tasks in addition to relay switching operations that PLCs are capable performing. 3. List six distinct advantages that PLCs offer over controller operates in real time. What does this mean? of performing 13. Answer the following with reference to the f conventional relay-based control systems. control PLC ladder logic diagram of Figure 1-21 this etary PLC architecture. 5. State two ways in which LVO is incorporated into 4,...

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