×

Use of different color sequences for variables of different sizes and different semantics

  • US 20070074190A1
  • Filed: 11/30/2006
  • Published: 03/29/2007
  • Est. Priority Date: 03/28/2003
  • Status: Abandoned Application
First Claim
Patent Images

1. A method of allocating registers to variables in a software program, the method comprising:

  • generating an interference graph for said software program, each node in the interference graph representing a web of a variable in the software program;

    ordering nodes of the graph into a sequence (also called “

    node sequence”

    ) in a descending order based on the number of edges of each node;

    identifying a node in sequential order from the node sequence;

    selecting a sequence of colors from among a plurality of sequences of colors, each sequence containing colors that are arranged in a specific order based on a predetermined preference;

    identifying a color in sequential order from the selected sequence of colors;

    checking if any register associated with the identified color is used by a neighbor of the identified node and if not, using the identified color for coloring the identified node; and

    if the identified color cannot be used, repeatedly performing the acts of “

    identifying a color” and



    checking”

    until all colors in the selected sequence are used.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×