×

Compiler allocating a register to a data item used between a use and store of another data item previously allocated to the register

  • US 5,339,428 A
  • Filed: 09/04/1991
  • Issued: 08/16/1994
  • Est. Priority Date: 09/04/1991
  • Status: Expired due to Term
First Claim
Patent Images

1. A method of allocating registers in a compiler, comprising the steps of:

  • a) identifying temporary items in a unit of code, each of said temporary items requiring storage;

    b) identifying a lifetime of each one of said temporary items, said lifetime of said each of said temporary items being an interval of time between the creation and the last use of said each of said temporary items within said unit of code;

    c) identifying holes in the lifetime of said each one of said temporary items, said hole in the lifetime of said each one of said temporary items being an interval of time between a use and store of said each one of said temporary items within said unit of code; and

    d) allocating to said registers said each of said temporary items, includingforming a list for each of said registers of said each of said temporary items and said holes associated with said each of said temporary items allocated to said each of said registers;

    allocating to one of said registers a first one of said temporary items, said first temporary item having a hole;

    locating in said list a second one of said temporary items, said second temporary item having a lifetime fitting within said hole in said first temporary item; and

    allocating to said one register said second temporary item.

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