×

Register allocation via selective spilling

  • US 6,009,272 A
  • Filed: 06/30/1997
  • Issued: 12/28/1999
  • Est. Priority Date: 06/30/1997
  • Status: Expired due to Term
First Claim
Patent Images

1. A method for minimizing register spilling in an optimizing compiler by updating a first set of code instructions to include one or more code instructions for causing specified data to be stored in a first memory location during the execution of the first set of code instructions, the method comprising the steps of:

  • a) determining a code region hierarchy based upon the first set of code instructions, wherein the code region hierarchy includes a set of code regions;

    b) generating a second set of code instructions based upon both the code region hierarchy and the specified data, wherein the execution of the second set of code instructions causes the specified data to be moved from a second memory location to the first memory location;

    c) generating a third set of code instructions based upon both the code region hierarchy and the specified data, wherein the execution of the third set of code instructions causes the specified data to be moved from the first memory location to the second memory location; and

    d) adding both the second set of code instructions and the third set of code instructions to one or more locations in the first set of code instructions based upon code region boundaries specified by the code region hierarchy,whereby register spilling is reduced.

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