How is a lattice used by a compiler

前端 未结 1 927
醉酒成梦
醉酒成梦 2021-02-08 18:07

In my graduate class on compiler construction we\'ve been introduced to the concept of a lattice. Three lectures have been devoted to lattices and so far it seems like an inter

1条回答
  •  失恋的感觉
    2021-02-08 18:08

    Lattices are a very useful structure to represent state while doing static analysis on the program being compiled - eg. for removing dead code detected by liveness analysis, available/very busy expressions, reaching definitions, sign analysis and constant propagation.

    Here is a very good read if you want the details: Lecture Notes on Static Analysis

    0 讨论(0)
提交回复
热议问题