×

Fast runtime scheme for removing dead code across linked fragments

  • US 20020013938A1
  • Filed: 01/05/2001
  • Published: 01/31/2002
  • Est. Priority Date: 02/09/2000
  • Status: Abandoned Application
First Claim
Patent Images

1. A method for removing dead code in code fragments of a program, comprising:

  • processing a first code fragment and storing first information generated during this processing indicative of whether an instruction for assigning a register in a first code fragment is possibly live;

    processing a second code fragment and storing second information generated during this processing indicative of register usage;

    at a time when the first and second code fragments are to be linked, determining, by use of the first and second stored information, if an instruction in the first code fragment that assigns a register is a dead instruction; and

    responsive to determination that an instruction is a dead instruction, eliminating the dead instruction.

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