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
Steel is coated with a thin layer of ceramic to protect against corrosion. what do you expect to happen to the coating when the temperature of the steel is increased significantly? explain.
Answers: 1
question
Engineering, 04.07.2019 19:20
Consider airflow over a flat plate of length l = 1.5 m under conditions for which transition occurs at le = 0.9 m based on the critical reynolds number, re,e = 5 x 10. evaluating the thermophysical properties of air at 400 k, determine the air velocity. (hint: use the tables to find the properties of air)
Answers: 3
question
Engineering, 06.07.2019 03:30
Acubic shaped box has a side length of 1.0 ft and a mass of 10 lbm is sliding on a frictionless horizontal surface towards a 30 upward incline. the horizontal velocity of the box is 20 ft/s. determine how far up the incline the box will travel (report center of mass distance along the inclined surface, not vertical distance)
Answers: 1
question
Engineering, 06.07.2019 04:20
Assume that you are asked to perform a boring operation on a large-diameter hollow workpiece. would you use a horizontal or a vertical boring mill?
Answers: 3
You know the right answer?
Assuming that 16 bits are available to store the relevant operand and the result:

show...
Questions
question
Mathematics, 04.02.2021 22:10
question
Mathematics, 04.02.2021 22:10
question
Mathematics, 04.02.2021 22:10
question
History, 04.02.2021 22:10
Questions on the website: 13722367