Dataflow Analysis

DataflowAnalysis is a form of StaticAnalysis? of programs, wherein the possible sources of values for variables are tracked and correlated. This sort of analysis can lead to significant compile-time optimizations by recognizing and exploiting incidental commonalities among all the value sources.

Optimizations from DataflowAnalysis most commonly include entirely avoiding runtime checks for operator validity. Some examples:

Dataflow optimizations usually result in various amounts of code being omitted from the compiled form of the program. In extreme cases, entire blocks or methods can be omitted if the compiler can prove that they are unreachable.

DesignByContract can dramatically increase the usefulness of DataflowAnalysis.


EditText of this page (last edited June 19, 2001) or FindPage with title or text search