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

  Write an assembly language version

write an assembly language version of the following c code segment

  In this project you will build an 8088 assembler the job

in this project you will build an 8088 assembler. the job of your assembler is to turn 8088 assembly code i.e. the

  Program the control unit for an electronic safe

Program the control unit for an electronic safe. The 8-Segment display and LEDs will show status of the safe.

  Compute number of lines of the address bus

Compute number of lines of the address bus connecting the RAM and the CPU - what is the maximum size in Bytes for RAM.

  Under what condition is the instruction sequence useful

On a certain computer it is possible to move a number from one register to another, shift each of them left by different amounts. Under what condition is this instruction sequence useful for computing ‘‘constant ´ variable''?

  Define a second byte array to store the frequencies

Write a code block to print the content of chA and write a code block to print the transpose of chA - Write a code block to compute the individual summation per each column, per each row and the overall summation of chA.

  White-collar assembly lines

White collar workers (who may not necessarily be considered high-skilled) are impacted in this case. Call centers and data processing centers are the "white-collar assembly lines" of IT. Accountants, medical transcriptionists, telemarketers, and o..

  Allot op-codes and add microcode to microprogram

Allot op-codes and add microcode to microprogram of Mic-1 to implement following instructions which are then included with IJVM instruction set.

  Part a clockuse a timer interrupt to design a simple

part a clockuse a timer interrupt to design a simple digital clock. this clock will count only minutes and seconds

  Program a maze-type game using assembly language

This project requires you to program a maze-type game using Assembly Language. It is not acceptable to use any other programming language for this project. T

  Analog measurements prepare an assembly program for the

analog measurements prepare an assembly program for the correctly measures the wind direction to a precision of 45deg n

  Document the protocols for passing

You must document the protocols for passing parameters and returning the result to the subroutine and also follow the convertion of saving and restoring registers in the subroutine.

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