Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Constant propagation?

Ook bekend als: constant folding

Definition 8.11 University Computer Science — Year 3 · Hoofdstuk 8 — Program Analysis and Optimisation

Constant propagation is the forward analysis whose fact at each point maps each temporary to ⊥\bot, a constant kk, or ⊤\top, joined pointwise in the lattice of the figure above; the parameters are ⊤\top at the entry. Its transformation replaces a use of a temporary by kk where the fact says kk, computes at compile time an operation whose operands are constants (constant folding), and replaces a branch whose outcome is then known by a jump or by nothing.

Lees in het hoofdstuk →