5. Consider two compilers producing machine code for a given program to be run on the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
5. Consider two compilers producing machine code for a given program to be run on the same machine. The machine 's instructions are divided into class a with CPI of and class B with CPI of 2. Machine language programs produced by the two compilers lead to the execution of the following number of instructions from each class: In Class A, the instruction for compiler 1 is 600M and instruction for compiler 2 is 400M. In class B, the instruction for compiler1 is 400M and instruction for the compiler2 is 400M. A) What ae the execution time s of the two programs, assuming a 1 GHz clock rate? (7pts) B) Which compiler produces faster code and by what factor? (7pts) C) Which compiler's machine language output runs at a higher MIPS rate? D) What MIPS rate for the Class B? (7pts) (4pts) 5. Consider two compilers producing machine code for a given program to be run on the same machine. The machine 's instructions are divided into class a with CPI of and class B with CPI of 2. Machine language programs produced by the two compilers lead to the execution of the following number of instructions from each class: In Class A, the instruction for compiler 1 is 600M and instruction for compiler 2 is 400M. In class B, the instruction for compiler1 is 400M and instruction for the compiler2 is 400M. A) What ae the execution time s of the two programs, assuming a 1 GHz clock rate? (7pts) B) Which compiler produces faster code and by what factor? (7pts) C) Which compiler's machine language output runs at a higher MIPS rate? D) What MIPS rate for the Class B? (7pts) (4pts)
Expert Answer:
Related Book For
Precalculus Concepts Through Functions A Unit Circle Approach To Trigonometry
ISBN: 9780137945139
5th Edition
Authors: Michael Sullivan
Posted Date:
Students also viewed these operating system questions
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
The new line character is utilized solely as the last person in each message. On association with the server, a client can possibly (I) question the situation with a client by sending the client's...
-
Consider thedeadlock situation that could occur in the dining-philosophers problem when the philosophers obtain the chopsticks one at a time. Discuss how the four necessary conditions for deadlock...
-
Explain how blogs and social media networks can be used by businesses and report writers.
-
The reaction 3I(aq) + H3AsO4(aq) + 2H+(aq) I3(aq) + H3AsO3(aq) + H2O(l) is found to be first order with respect to each of the reactants. Write the rate law. What is the overall order?
-
Show that, for the isotropic case, (i) the velocity correlation function is now symmetric and (ii) the pressure-velocity correlation is zero.
-
Tapley Inc. currently has assets of $5 million, has zero debt, is in the 40% federal-plus-state tax bracket, has a net income of $1 million, and pays out 40% of its earnings as dividends. Net income...
-
Novak Supply Corporation has issued common stock only. The company has a gross profit rate of 20%. The information shown below was taken from the company's financial statements: Beginning inventory...
-
Following are the ordinates of a storm hydrograph of a river draining a catchment area of 423 km due to a 6h storm.. Derive the ordinates of 6h unit hydrograph & plot the same. Time in hr -6 Stream...
-
An object having mass 25 kg rests on a rough horizontal surface. The static and kinetic friction coefficients between the object and the surface are given by 0.5 and 0.4, respectively. Determine the...
-
You shoot a \(0.0050-\mathrm{kg}\) bullet into a \(2.0-\mathrm{kg}\) wooden block at rest on a horizontal surface (Figure P5.44). After hitting dead center on a hard knot that runs through the block...
-
Two solid spheres hung by thin threads from a horizontal support (Figure P5.70) are initially in contact with each other. Sphere 1 has inertia \(m_{1}=0.050 \mathrm{~kg}\), and sphere 2 has inertia...
-
Many states conduct lotteries; a typical lottery (Keno) payoff ticket is shown here. Assume there are 20 numbers chosen from a set of 80 possible numbers. Use this information for Problems 52-56....
-
We define the even and odd parts of a complex sequence \(x(n)\) as \[\mathcal{E}\{x(n)\}=\frac{x(n)+x^{*}(-n)}{2} \quad \text { and } \quad \mathcal{O}\{x(n)\}=\frac{x(n)-x^{*}(-n)}{2}\]...
-
The homogeneous circular corona of the question 3 rotates about its axis of symmetry by making one revolution every 90 s 90 s around the axis of symmetry. Determine magnitude of the angular momentum....
-
The following financial statement items are shown for J&T Manufacturing. Net Sales $840,000 Cost of Goods Sold $360,000 Insurance Expense $28,000 Total Operating Expenses $120,000 Net Income $56,000...
-
Select a mass spectrometric technique with the highest mass resolution for identifying an unknown compound being eluted from a liquid chromatography column
-
In Problems 3450, establish each identity. 5 cos 0+3 sin 0 = 3+ 2 cos0
-
In Problems 4576, solve each exponential equation. Express irrational solutions in exact form. ex+3 = x
-
In Problems 4150, verify that the functions f and g are inverses of each other by showing that f (g(x)) = x and g(f (x)) = x. Give any values of x that need to be excluded from the domain of f and...
-
Explain the properties of the restricted least squares estimator. In particular, how do its bias and variance compare with those of the unrestricted, ordinary, least squares estimator?
-
Explain the issues that need to be considered when choosing a regression model.
-
Identify collinearity and explain its consequences for least squares estimation.
Study smarter with the SolutionInn App