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
Abrake has a normal braking torque of 2.8 kip in and heat-dissipating cast-iron surfaces whose mass is 40 lbm. suppose a load is brought to rest in 8.0 s from an initial angular speed of 1600 rev/min using the normal braking torque; estimate the temperature rise of the heat dissipating surfaces.
Answers: 3
question
Engineering, 04.07.2019 18:10
Water at 55c flows across a flat plate whose surface temperature is held constant at 95c. if the temperature gradient at the plate's surface for a given value of x is 18 c/mm, find a) local heat transfer coefficient. b) heat flux
Answers: 3
question
Engineering, 04.07.2019 18:10
Which of the following refers to refers to how well the control system responds to sudden changes in the system. a)-transient regulation b)- distributed regulation c)-constant regulation d)-steady-state regulation
Answers: 1
question
Engineering, 04.07.2019 18:10
Ifa component is made of two or more materials with different modulus of elasticity (e), it is called a composite member and we calculate the factor·n". mention the formula for calculating n". also, ifn> 1, explain what will happen to the 1. transformed.gi) ifn 1, what will happen to the material when transformed material when
Answers: 1
You know the right answer?
Assuming that 16 bits are available to store the relevant operand and the result:

show...
Questions
question
Health, 27.10.2021 14:00
question
English, 27.10.2021 14:00
question
Mathematics, 27.10.2021 14:00
question
Biology, 27.10.2021 14:00
Questions on the website: 13722362