全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Live temporary?

又称: liveness

Definition 8.5 University Computer Science — Year 3 · 第 8 章 — Program Analysis and Optimisation

A temporary is live at a point if some path from that point reads it before writing it. Liveness is the backward analysis whose facts are sets of temporaries, joined by union, with the empty set at the exits, and livebefore(i)=uses(i)∪(liveafter(i)∖def(i))\mathit{live}_{\mathrm{before}}(i) = \mathit{uses}(i) \cup (\mathit{live}_{\mathrm{after}}(i) \setminus \mathit{def}(i)) for each instruction ii.

The control-flow graph of sumsq with the live sets of  in red, at the start of the function and after each block. The unreachable final return is not drawn.
The control-flow graph of sumsq with the live sets of Output 8.1 in red, at the start of the function and after each block. The unreachable final return is not drawn.
在原文中阅读 →