adplus-dvertising
frame-decoration

Question

What is an example of a compiler optimization that can alter the control flow structure of a program?

a.

Loop unrolling

b.

Function inlining

c.

Constant folding

d.

Converting pretested loops to posttested loops

Posted under Reverse Engineering

Answer: (d).Converting pretested loops to posttested loops Explanation:Many compilers tend to convert pretested loops to posttested loops, while adding a special test before the beginning of the loop to make sure that it is never entered if its condition is not satisfied. This can alter the control flow structure of a program and reduce the readability of decompiled output if not properly handled.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is an example of a compiler optimization that can alter the control flow structure of a program?