Question: Live Ranges & Interference Graphs. Given the following control flow graph: 1. Input X, Y 2. If go to 7 3. Z = X +

 Live Ranges & Interference Graphs. Given the following control flow graph:

Live Ranges & Interference Graphs. Given the following control flow graph: 1. Input X, Y 2. If go to 7 3. Z = X + 1 7. Z = X-1 4. X = Z + 1 8. X=Z-1 5. Y=X* 2 9. Output X, Y i. How many live ranges are there for variable X? ii. How many live ranges are there for variable Y? iii. How many live ranges are there for variable Z? iv. Does a live range of X interfere with a live range of Y? v. Does a live range of X interfere with a live range of Z? vi. Does a live range of Y interfere with a live range of Z? vii. What is the highest degree value in the interference graph? viii. What is the lowest degree value in the interference graph? ix. What is the minimum number of colors needed to color all the live ranges in the interference graph? x. If only two colors are available to color the interference graph, what is the minimum number of live ranges that will not be assigned a color

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!