A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

Que. In compiler optimization, operator strength reduction uses mathematical identities to replace slow math operations with faster operations. Which of the following code replacements is an illustration of operator strength reduction?
a. Replace P + P by 2 * P or Replace 3 + 4 by 7
b. Replace P * 32 by P<<5
c. Replace P * 0 by 0
d. Replace (P<<4) – P by P * 15
Answer:Replace P * 32 by P<<5
Yasu :(October 23, 2019) Need explanation
Click to Add Comment

Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: