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
Thermal stresses are developed in a metal when its a) initial temperature is changed b) final temperature is changed c) density is changed d) thermal deformation is prevented e) expansion is prevented f) contraction is prevented
Answers: 2
question
Engineering, 04.07.2019 19:10
With increases in magnification, which of the following occur? a. the field of view decreases. b. the ambient illumination decreases. c. the larger parts can be measured. d. the eyepiece must be raised.
Answers: 1
question
Engineering, 04.07.2019 19:10
Ahelical coil spring has a mean diameter of 50 mm, a wire diameter of 5.5 mm and is wound with a pitch of 10 mm. the spring steel has an ultimate strength of 1250 mpa. find the force needed to compress the spring solid and the wire stress in this condition. state whether the spring will return to its initial length.
Answers: 1
question
Engineering, 04.07.2019 19:10
Acircular aluminum shaft mounted in a journal is shown. the symmetric clearance gap between the shaft and journal is filled with sae 10w-30 oil at t 30°c. the shaft is caused to turn by the attached mass and cord. develop and solve a differential equation for the angular speed of the shaft as a function of time.
Answers: 2
You know the right answer?
Assuming that 16 bits are available to store the relevant operand and the result:

show...
Questions
question
Mathematics, 26.09.2019 07:30
Questions on the website: 13722367