×

Compiler, compiler apparatus and compilation method

  • US 20040025150A1
  • Filed: 07/31/2003
  • Published: 02/05/2004
  • Est. Priority Date: 08/02/2002
  • Status: Active Grant
First Claim
Patent Images

1. A compiler that translates a source program into a machine language program, including operation definition information in which operation that corresponds to a machine language instruction specific to a target processor is defined, comprising:

  • a parser step of analyzing the source program;

    an intermediate code conversion step of converting the analyzed source program into intermediate codes;

    an optimization step of optimizing the converted intermediate codes; and

    a code generation step of converting the optimized intermediate codes into machine language instructions, wherein the intermediate code conversion step includes;

    a detection sub-step of detecting whether or not any of the intermediate codes refer to the operation defined in the operation definition information; and

    a substitution sub-step of substituting the intermediate code with a corresponding machine language instruction, when the intermediate code is detected, and in the optimization step, the intermediate codes are optimized, the intermediate codes including the machine language instruction substituted in the substitution sub-step.

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