TC-8 FAQ
- Why do we have a
TempMap
, and not Appel? Refer to $fp or fp, in TC-5 FAQ, for all the details. Pay special attention to converting the temporaries where needed:
the flow graph is independent of the temporaries
the liveness graph, when computing live-in and live-out sets, must of course convert the “def” and “use” sets
the interference graph, when attributing a node number for each temporary (
InterferenceGraph::node_of
), must allocate the same number to corresponding temporaries (e.g.,$fp
andfp
must bear the same number).
We also use a
TempMap
here to build the liveness graph after register allocation, to check the compiler.1 & 2
$ tc -sV and.tig $ echo $? 0