Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Live temporary?

Dikenal juga sebagai: liveness

Definition 8.5 University Computer Science — Year 3 · Bab 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.
Baca dalam konteks →