全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Constant propagation?

又称: constant folding

Definition 8.11 University Computer Science — Year 3 · 第 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.

在原文中阅读 →