1 1 vote Match the following statements with True (T) / False (F).S1: replacing A + 4*3 with A + 12 is called strength reductionS2: replacing A * 4 with A << 2 is called constant foldingOptions:TTTFFTFF Compiler Design compiler-design code-optimization + – Vishnu__ 233 views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
Best answer 0 0 votes DBoth statements are false. The correct statements are:S1: replacing A + 4*3 with A + 12 is called constant folding.S2: replacing A * 4 with A << 2 is called strength reduction.“Evaluation of constant expressions at compile time is constant folding, whereas replacing expensive operations with cheaper ones is strength reduction.” jd_2706 answered Feb 5 • selected Feb 5 by Vishnu__ jd_2706 comment Share Follow 0 reply Please log in or register to add a comment.