Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Live temporary?

Também chamado de: liveness

Definition 8.5 University Computer Science — Year 3 · Capítulo 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.
Ler no capítulo →