Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Live temporary » ?

Aussi appelé : liveness

Definition 8.5 University Computer Science — Year 3 · Chapitre 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.
Lire dans le chapitre →