In compiler design “reducing the strength” refers to
2012
In compiler design “reducing the strength” refers to
- A.
reducing the range of values of input variables
- B.
code optimization using cheaper machine instructions
- C.
reducing efficiency of program
- D.
None of the above
Attempted by 45 students.
Show answer & explanation
Correct answer: B
Strength reduction is a compiler optimization technique designed to improve performance. It replaces computationally expensive operations, such as multiplication or division, with cheaper alternatives like addition or bit shifting.
A video solution is available for this question — log in and enroll to watch it.