×

Compiler and register allocation method

  • US 7,174,546 B2
  • Filed: 09/12/2001
  • Issued: 02/06/2007
  • Est. Priority Date: 09/12/2000
  • Status: Expired due to Fees
First Claim
Patent Images

1. A computer-readable medium embodying a computer-executable compiler, which converts into a machine language the source code of a program written in a programming language and optimizes said program, comprising:

  • a directed acyclic graph DAG analysis unit for constructing and analyzing a DAG for an instruction in a program to be processed;

    an interference graph construction unit for employing the analysis results obtained by said DAG analysis unit to construct an interference graph representing the probability that an interference will occur between variables used by said instruction, wherein said interference graph construction unit determines a phase arrangement order for nodes of said DAG, so that said execution interval for said program is minimized, and when the intervals are overlapped where the variables among said instructions in said phase arrangement order are present, said interference between said variables is reflected in said interference graph; and

    a graph identifier for allocating registers for said instruction using said interference graph that is constructed by said interference graph construction unit,wherein, when the overall time for executing said program is extended unless predetermined multiple instructions are executed in parallel, said interference graph construction unit assumes that an interference has occurred among variables used by said multiple instructions, and constructs said interference graph.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×