Discussion
In compiler terminology reduction in strength means
Answer: D
Reduction in strength means replacing a costly operation by a relatively cheaper one.
A typical example is replacing a multiplication by a loop index with an addition carried through the loop, or x * 2 with a shift or x + x. The result is the same but the operation is cheaper.
Replacing run-time computation by compile-time computation is constant folding, removing loop-invariant computation is code motion, and removing common subexpressions is a separate optimization.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development