5. Assume that computer M1 has CPU clock rate 2GHz, and supports four classes of instructions:...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
5. Assume that computer M1 has CPU clock rate 2GHz, and supports four classes of instructions: ALU, load, store, branch/jump. Load has CPI = 5, store has CPI =4, ALU instruction has CPI = 4, and branch/jump has CPI = 3. The following program P is used in testing the computer performance: F: SUBI SP, SP, #16 // (*) make room on the stack STUR X19, [SP, #0] // preserve X19 STUR X30, [SP, #8] // preserve the return location ADD X19, X2, X3 // calculate c + d // Clean up in preparation for tail call LDUR X19, [SP, #0] LDUR X30, [SP , #8] LSL X30, X30, #2 ORR X30, X30, X19 ADDI SP, SP, #16 // (*) BF// call g(g(a,b).c+d) with tail-call optimization a. What is the average CPI for program P? b. Another computer M2 with clock rate of 3GHz has the same performance as computer M1 when it runs the program P. What is the average CPI of computer M2? 5. Assume that computer M1 has CPU clock rate 2GHz, and supports four classes of instructions: ALU, load, store, branch/jump. Load has CPI = 5, store has CPI =4, ALU instruction has CPI = 4, and branch/jump has CPI = 3. The following program P is used in testing the computer performance: F: SUBI SP, SP, #16 // (*) make room on the stack STUR X19, [SP, #0] // preserve X19 STUR X30, [SP, #8] // preserve the return location ADD X19, X2, X3 // calculate c + d // Clean up in preparation for tail call LDUR X19, [SP, #0] LDUR X30, [SP , #8] LSL X30, X30, #2 ORR X30, X30, X19 ADDI SP, SP, #16 // (*) BF// call g(g(a,b).c+d) with tail-call optimization a. What is the average CPI for program P? b. Another computer M2 with clock rate of 3GHz has the same performance as computer M1 when it runs the program P. What is the average CPI of computer M2?
Expert Answer:
Answer rating: 100% (QA)
The image contains a question about computer performance with a provided assembly program and two subquestions Lets first analyze the program instruct... View the full answer
Related Book For
Computer Architecture A Quantitative Approach
ISBN: 978-8178672663
5th edition
Authors: John L. Hennessy, David A. Patterson
Posted Date:
Students also viewed these programming questions
-
The following information was taken from the records of Caton Co. for the year 2021. Income tax on the income from continuing operations was $219,300; income tax savings from the loss on discontinued...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
rn Explain in some detail how the Precision Tree calculations in Figure 6.11 for the Acme problem are exactly the same as those for the hand-drawn decision tree in Figure 6.6. In other words, explain...
-
Plastique produces parts for use in various industries. Plastique uses a job-costing system. The nature of its process is such that management expects normal spoilage at a rate of 2% of good parts....
-
The reaction of hydrogen and oxygen gases produces 18.0 g of water and releases 68.2 kcal of heat. How much energy is required to decompose 18.0 g of water into hydrogen and oxygen gases?
-
As indicated in the text, one often distinguishes between initial failures, random failures during the useful life of the product, and wear-out failures. For a given product, suppose the probability...
-
As a Netflix member, youre pleasantly surprised to find that the 1940s serial Zorros Black Whip has shown up on your recommended list. You move it to the top of your queue immediately, but youre...
-
Renue Spa had the following balances as of December 31, Year 1: Accounts receivable was $87,000, allowance for doubtful accounts was $2,900 and total retained earnings at the end of Year 1 was...
-
Three-Month Project NOTE! Templates needed Ampersand, Inc., is a small business that operates in Somerset, VT The company is located at 732 Appalachian Way, Somerset, VT 05363. Its federal Employer...
-
In a state, the probability that a person speaks French is 0.55. It is known that 15% from persons who speak French and 25% from persons who don't speak French are teachers. A person is selected at...
-
The Earth's population grows exponentially as N(t)=Ae0.001t. Currently (at t=0) there are 7.9 billion people on Earth. How soon there will be 100 billion people?
-
Assignment 5: Hash Table implementation andconcordance There are three parts to this assignment. In the first two parts,you will complete the implementation of a hash map and aconcordance program. In...
-
Why do organizations attempt to "break in" employees when they first join? Describe the-15 major socialization practices used by organizations and relate them to experiences you have had as an...
-
According to the South African Rental Housing Act, 50 of 1990 (as amended by the Rental Housing Act 35 of 2014) answer the following questions below: Whose responsibility is it to promote rental...
-
1. Cocaine is commonly called as :- (1) Smack (2) coke (3) crack (4) both 2 & 3 2. The hepatitis B vaccine has been produced on alarge scale through :- (1) Recombinant DNA technology using claviceps...
-
Which organization is most likely to have the highest employee performance and organizational productivity? a. Neither, as they are both in the same industry and facing the same environments. b....
-
Use the T account for Cash below to record the portion of each of the following transactions, if any that affect cash. How do these transactions affect the companys liquidity? Jan. 2 Provided...
-
Consider a two-level memory hierarchy made of L1 and L2 data caches. Assume that both caches use write-back policy on write hit and both have the same block size. List the actions taken in response...
-
A reduced hardware implementation of the classic five-stage RISC pipeline might use the EX stage hardware to perform a branch instruction comparison and then not actually deliver the branch target PC...
-
Power efficiency has become very important for modern processors, particularly for embedded systems. Create a version of gcc for two architectures that you have access to, such as x86, MIPS, PowerPC,...
-
The hydrodynamic boundary layer equations consist of one momentum equation and the continuity equation. How does one solve for the pressure?
-
In laminar flow, why does the heat transfer coefficient decrease as the boundary layer thickness grows?
-
How does the hydrodynamic boundary layer thickness depend upon the Reynolds number?
Study smarter with the SolutionInn App