Compiler at compilation time

Assignment Help Business Economics
Reference no: EM131439928

Assuming that 12 bits are available to store the relevant operand and the result:a. Show how the compiler can use subtraction and shifting only (that is, no use of multiplication)to determine the result of 19*56, if 19 is the value of a variable, x, and 56 is a constant which is known to thecompiler at compilation time. Show the bit patterns of both operands in the multiplication, and explain clearlythe steps you follow to determine the result. Hint: See the slides on "multiplying by constants".b. Now show how the compiler can use subtraction and shifting only (that is, no use ofmultiplication) to determine the result of 19*-56, if 19 is the value of a variable, x, and -56 is a constant which isknown to the compiler at compilation time. Show the bit patterns of both operands in the multiplication, andexplain clearly the steps you follow to determine the result. Hint: See the slides on "multiplying by constants"when the constant is negative.

Reference no: EM131439928

Questions Cloud

What would be daphne role : Nine-year-old Wanda's teacher notices that for the past few weeks, Wanda has not been talking to her friends and is always sitting alone in a corner. What would be Daphne's role, as a counselor, in helping the teacher
Define a scheme procedure-named tree-sort : Define a Scheme procedure, named tree-sort, which takes a list of numbers and outputs the same list, but in sorted order. Your procedure should sort the list by: (a) inserting the numbers into a binary search tree and, then,
Identify which two concepts you are analyzing : Convince us you have attended and read all applicable material. Clearly identify which 2 concepts you are analyzing, and also include a link to the article you are responding to.
What were some of your reactions to the video : What were some of your reactions to the video? Explain the important physical, cognitive, and social/personality growth that occurs in middle school children. What are some of the environmental factors that impact (positively or negatively) growth du..
Compiler at compilation time : Show the bit patterns of both operands in the multiplication, andexplain clearly the steps you follow to determine the result. Hint: See the slides on "multiplying by constants"when the constant is negative.
Important factors in determining type of data storage : 1.  What are the two most important factors in determining the type of data storage format that should be adopted for a system?  What impact will the organization's existing storage formats affect this selection?
Solve the given lpp equation : For the given mathematical LPP problem, use Solver to find out whether the solution is feasible or not.
Describe the usage of ms access as prototype tool : Describe the usage of Ms Access as prototype tool. A web search for relevant articles and information should be employed to assist you in your response. (at least two web sites)
Symmetric and asymmetric encryption : What's the difference between Symmetric and Asymmetric encryption?

Reviews

Write a Review

Business Economics Questions & Answers

  Payoff matrix of economic profits

The payoff matrix of economic profits above displays the possible outcomes for Bob and Jane who are involved in game of whether or not to advertise.

  Growth without diminishing productivity of capital

Growth without diminishing productivity of capital suppose that the production function is Y=AK. What is the condition for the growth rate of capital per worker, ?what does the s*(y/k) curve look like? Discuss how your results relate to diminishing p..

  Which surveys are mandated and which are voluntary

The regulatory agencies, JCAHO, CMS, and State Departments of Health all survey (inspect) hospitals and medical facilities. How may these processes improve quality in care? Which surveys are mandated and which are voluntary? Why would a facility choo..

  What will be the effects on the positions of the mp curve

Consider an economy characterized by the following: C = $3.5 trillion I = $1.8 trillion G = $2 trillion T = $2 trillion NX = -$1 trillion mpc = .75 d = 10 x=5 λ=1 r = .01 f =.01 A. Derive mathematical expressions (based on the given parameter values)..

  Part pricing strategy compared with single price strategy

Suppose you are the manager of a golf club with monopoly power. a typical consumer's inverse demand function for your firm's product is P=100-20Q, and your cost function is C(Q)=20Q. a. If you apply a two-part pricing strategy, how much would be the ..

  Illustrate would landowner have an incentive to control

If the farmer rented her land from a landowner, would she have the same incentives to control soil erosion. Illustrate would the landowner have an incentive to control erosion.

  Find the cash coverage ratio

Hedgepeth Inc.’s net income for the most recent year was $16,885. The tax rate was 40 percent. The firm paid $3,976 in total interest expense and deducted $2,655 in depreciation expense. What was the cash coverage ratio for the year? Find the cash co..

  Consistent with nash equilibrium-who will enter the race

Four political candidates are deciding whether or not to enter a race for an elected office where the decision depends on who else is throwing his or her hat into the ring. Candidate D prefers not to enter if either candidate B and/or C are expected ..

  As a result of the weakened dollar from the financial crisis

As a result of the weakened dollar from the financial crisis,

  Approximate difference in mu of shrimp vs lobster

Assume the price of large gulf shrimp is dollar 18 per pound and that the price of hard shell Maine lobster tails is dollar 36 per pound. Your professor uses 1/2 pound of lobster or 1/2 pound of shrimp with various pasta dishes. what is the approxima..

  What price will chevrolet charge once ford has set its price

Game Theory Suppose there are only two car companies, Ford & Chevrolet. Ford believes that Chevrolet will match any price it sets, but Chevrolet too is interested in maximizing profit. Use the following price and profit data to answer the followin..

  True in the short run equilibrium

There are one hundred jobs and one hundred workers in a competitive job market. All the workers are equally productive. All employers dislike female workers but vary by the degree of their dislike. Job one's employer dislikes females by $100 a week. ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd