Chow's Algorithm (Global Register Allocation Register Allocation)

From Algorithm Wiki
Jump to navigation Jump to search

Time Complexity

$O(n^{2})$

Space Complexity

$O(n^{2})$ words

(Derived: this algorithm also uses a register interference graph (RIG))

Description

Assumes all variables allocated in main memory (i.e. assumes no spill handling required).

Priority-based RIG coloring

Approximate?

Exact

Randomized?

No, deterministic

Model of Computation

Word RAM

Year

1984

Reference

https://dl.acm.org/doi/10.1145/502874.502896