Question: 6 Dataflow and Register Allocation ( 3 2 Points ) 1 . You are given the control - flow graph for a function that uses
Dataflow and Register Allocation Points
You are given the controlflow graph for a function that uses variables a to g with a and b being the arguments and g and f the return values. Part of the program statements and part of the set of variables that are live right afterbefore the corresponding statement have been removed from this graph, and replaced by empty boxes brackets. Fill in the missing program statements in the boxes and the missing set of variables that are live right afterbefore the corresponding statements so that the live sets are consistent with the code.
Program statements can take one of the following forms: x xy or xyz where x y and z can be any one of the variables used by the function If more than one statement would work in some position, pick the simplest one prefer x over xy and xy over xyz
Give the register interference graph for the above code. Points
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
