subject
Engineering, 10.11.2019 05:31 sarbjit879

Assuming that 16 bits are available to store the relevant operand and the result:

show how the compiler can use subtraction and shifting only (that is, no use of multiplication) to determine the result of 18*504, if 18 is the value of a variable, x, and 504 is a constant which is known to the compiler at compilation time. show the bit patterns of both operands in the multiplication, and explain clearly the steps you follow to determine the result. hint: see the slides on "multiplying by constants".

now show how the compiler can use subtraction and shifting only (that is, no use of multiplication) to determine the result of 18*-504, if 18 is the value of a variable, x, and -504 is a constant which is known to the compiler at compilation time. show the bit patterns of both operands in the multiplication, and explain clearly the steps you follow to determine the result. hint: see the slides on "multiplying by constants" when the constant is negative.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Afull journal bearing has a journal diameter of 27 mm, with a unilateral tolerance of -0.028 mm. the bushing bore has a diameter of 27.028 mm and a unilateral tolerance of 0.04 mm. the l/d ratio is 0.5. the load is 1.3 kn and the journal runs at 1200 rev/min. if the average viscosity is 50 mpa-s, find the minimum film thickness, the power loss, and the side flow for the minimum clearance assembly.
Answers: 1
question
Engineering, 04.07.2019 18:10
The filament of an incandescent lamp has a temperature of 2000k. calculate the fraction of radiation emitted in the visible light band if the filament is approximated as blackbody
Answers: 2
question
Engineering, 04.07.2019 18:10
At 12 noon, the count in a bacteria culture was 400; at 4: 00 pm the count was 1200 let p(t) denote the bacteria cou population growth law. find: (a) an expression for the bacteria count at any time t (b) the bacteria count at 10 am. (c) the time required for the bacteria count to reach 1800.
Answers: 1
question
Engineering, 04.07.2019 18:20
Find the minimum film thickness for a journal bearing with the data below. shaft diameter, d-50 mm, clearance ratio, cdratio? 0.001, shaft speed, n 2000 rpm; bearing length. i 200 mm; eccentricity ration, ? -0.55. ( note, cdratio-ca/d) the minimum film thickness is um
Answers: 2
You know the right answer?
Assuming that 16 bits are available to store the relevant operand and the result:

show...
Questions
question
World Languages, 29.07.2020 06:01
question
Mathematics, 29.07.2020 06:01
question
Mathematics, 29.07.2020 06:01
question
Mathematics, 29.07.2020 06:01
question
Mathematics, 29.07.2020 06:01
question
Mathematics, 29.07.2020 06:01
Questions on the website: 13722361