Show where biased coloring helps make the right decisions

Assignment Help Assembly Language
Reference no: EM13903735

The table below represents a register-interference graph. Nodes 1-6 are precolored (with colors 1-6), and nodes A-H are ordinary (non-precolored). Every pair of precolored nodes interferes, and each ordinary node interferes with nodes where there is an x in the table.

 

A

1

x

2

x

3

x

4

x

5

x

6

x

A

B

C

D

E

F

G

H

B

x

 

x

x

x

x

 

 

 

 

 

 

 

 

C

 

 

x

x

x

x

 

 

 

x

x

x

x

x

D

x

 

x

x

x

 

 

 

x

 

x

x

x

x

E

x

 

x

 

x

x

 

 

x

x

 

x

x

x

F

x

 

x

x

 

x

 

 

x

x

x

 

x

x

G

 

 

 

 

 

 

 

 

x

x

x

x

 

 

H

x

 

 

x

x

x

 

 

x

x

x

x

 

 

The following pairs of nodes are related by MOVE instructions:

A, 3) (H, 3) (G, 3) (B, 2) (C, 1) (D, 6) (E, 4) (F, 5)

Assume that register allocation must be done for an 8-register machine.

a. Ignoring the MOVE instructions, and without using the coalesce heuristic, color this graph using simplify and spill. Record the sequence (stack) of simplify and potential-spill decisions, show which potential spills become actual spills, and show the coloring that results.

b. Color this graph using coalescing. Record the sequence of simplifycoalescefreeze, and spill decisions. Identify each coalesce as Briggs- or George-style. Show how many MOVE instructions remain.

*c. Another coalescing heuristic is biased coloring. Instead of using a conservative coalescing heuristic during simplification, run the simplify-spill part of the algorithm as in part (a), but in the select part of the algorithm,

i. When selecting a color for node that is move-related to node , when a color for has already been selected, use the same color if possible (to eliminate the MOVE).

ii. When selecting a color for node that is move-related to node , when a color for has not yet been selected, use a color that is not the same as the color of any of 's neighbors (to increase the chance of heuristic (i) working when is colored).

Conservative coalescing (in the simplify phase) has been found to be more effective than biased coloring, in general; but it might not be on this particular graph. Since the two coalescing algorithms are used in different phases, they can both be used in the same register allocator.

*d. Use both conservative coalescing and biased coloring in allocating registers. Show where biased coloring helps make the right decisions.

Reference no: EM13903735

Questions Cloud

How can control over local marketing be managed in exporting : How can control over local marketing be managed in exporting? In franchising? How can Star- bucks, the specialty coffee retailer, maintain marketing control over its franchise operations in Japan?
What factors might make their behavior very similar : What behavioral differences would you expect to find between the managers in a large German multinational and in an American MNC in the same industry? What factors might make their behavior very similar?
What role is played by a strong brand : Visit an Internet interactive vehicle-buying service (such as AutoVantage) and compare the various makes offered. Discuss how the close comparisons possible online makes competitive advantages easier to identify. What role is played by a strong br..
What is probability that next subgroup average will fall : what is the probability that the next subgroup average will fall outside the control limits? On average, how many subgroups will have to be looked at in order to detect this shift?
Show where biased coloring helps make the right decisions : Use both conservative coalescing and biased coloring in allocating registers. Show where biased coloring helps make the right decisions.
What are the strengths and weaknesses of agency theory : What are the strengths and weaknesses of agency theory as a means of understanding executives' motivation and behaviour?
Does it appear that the process was in control : Assume that items produced are supposed to be normally distributed with mean 35 and standard deviation 3. To monitor this process, subgroups of size 5 are sampled.
What do firms hope to achieve by introducing profitsharing : What do firms hope to achieve by introducing profitsharing? How likely are they to get what they are after?
How scientific piece rates differ from standard piece rates : Why do piece rates have such a high propensity to cause a breach of the psychological contract and How do ‘scientific' piece rates differ from standard piece rates? Are they any better - and for whom?

Reviews

Write a Review

Assembly Language Questions & Answers

  Recode all functions utilizing the stack frame method

Recode all functions utilizing the Stack Frame method - Test each function from main, print appropriate array after each test.

  Calculate your grades based on the number of points you get

Create a program that calculates your grades based on the number of points you accumulate over the entire semester

  Prepare an assembly program that reads in a number of cents

prepare an assembly program that reads in a number of cents. the program will write out the number of dollars and cents

  Homework assignment on numerical representations

Create an assembly language function that displays the binary and hexadecimal representations of a 16 bit value (passed in as a parameter) on our LCD screen. Use the provided .c main file and assembly language subroutine example as a basis for you..

  Analog measurements

Prepare an assembly program for the correctly measures the wind direction

  Write reverse polish notation formula that cannot be convert

Write three reverse Polish notation formulas that cannot be converted to infix. Convert the following infix Boolean formulas to reverse Polish notation.

  Implement assembly language program to find greatest value

Write an assembly language program that will accept two 1-digit numbers (from 0 to 9) from the keyboard, compare the two numbers, and then print out the number of greatest value.

  Bios interrupt int 21 to read current system time

Write a program in assembly language which uses BIOS interrupt INT 21 to read current system time and displays it on the top-left corner of the screen.

  Relative addressing mode is a special way

Relative addressing mode is a special way to specify operands. Which instructions are associated with the relative addressing mode? Why do you think it was called "relative" addressing mode? Hint: Use a search engine to find out about "portable code"

  Motorola assembly language

The objective is to review the programmer's model, the Motorola assembly language, and the instruction execution cycle. To achieve these objectives, you will write a short program(s) satisfying the requirements below

  Prompts for an int8 value to inspect and then prints

Write an HLA Assembly program that prompts for an int8 value to inspect and then prints it in binary format.

  Find out the largest number from unordered array

Write assembely language program to find out the largest number from unordered array of 8bit starting at the location 0500h (offset)

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd