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

  Create a assembly language subroutine

Create a assembly language subroutine MULSUM that takes an array named A containing n bytes of positive numbers, and fills two arrays, array B containing n words and array C containing n long words

  Write a function in linux assembly

Write a function in Linux assembly

  Analog measurements

Prepare an assembly program for the correctly measures the wind direction

  Design a simple digital clock

Design a simple digital clock

  Write an assembly program

Prepare an Assembly program that reads in a number of cents.

  Write an assembly language program

Write an assembly language program for encrypting alphabates of a string

  Greatest common divisor of integers-masm assembly language

Must be done in MASM assembly language: Greatest common divisor of two integers is largest integer which will evenly divide both integers. GCD algorithm involves integer division in a loop.

  Write assembly program-find right admission price to movie

Write the Assembly program to find correct admission price to movie. Price of admission to a movie is $7 for kids (under 12) and $9 for adults.

  Create simple 8-bit alu using add-subtract-shift functions

Create a simple 8-bit ALU. Requirements:The eight functions that you will implement are: add, subtract, and, or, shift left logical, less than, shift right logical.

  Write assembly program print binary representation-integers

Write the assembly program called hw6_ex1, stored in file hw6_ex1.asm. This program must prompt user to enter signed 32-bit integer. Program must print out binary representation of the integer.

  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.

  Write mips assembly program to read two non-negative numbers

Write MIPS assembly program to repeatedly read two non-negative integers and print integer product and quotient without using multiplication and division instructions.

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