How does it work?
Types of code reduction
Code reduction organized in passes
Constant propagationVariables are substituted by constant values.
Expression simplificationExpressions that contain only constant values are evaluated and substituted by the resulting value.
Statement simplificationControl statements are simplified, dead code and code with no effect are removed.
Code reduction ends when either a maximum number of passes (specified by the user) is reached, or when the source program cannot be reduced any more. This happens when the result of two successive passes is the same source program.
Contents
How does it help?
Constant propagation
This page is maintained by Nikos Papaspyrou.
Last updated: Monday May 15 1995, 12:05 EET DST.