×

Detection of memory-related errors in computer programs

  • US 6,823,507 B1
  • Filed: 06/06/2000
  • Issued: 11/23/2004
  • Est. Priority Date: 06/06/2000
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method of detecting memory-related errors in a computer program during compiling of said computer program, said method including the steps of:

  • performing static analysis upon a computer program, wherein the static analysis is performed concurrently with performance of compiler optimization and includes the steps of;

    assigning pre-conditions for respective statements in said computer program, wherein such a pre-condition must be satisfied in order for the computer program to execute without producing memory-related errors; and

    evaluating whether said pre-conditions are satisfied in said computer program, wherein the static analysis uses certain data structures and analysis also used in the concurrent performance of the compiler optimization;

    reporting, during compiling of said computer program, presence or absence of a memory-related error in said computer program if said evaluation is successful in determining whether such a pre-condition is satisfied;

    generating computer code, during compiling of said computer program, wherein the generated computer code includes a test for run-time detection of a memory-related error in said computer program if said evaluation of such a pre-condition is indeterminate; and

    producing compiled object code responsive to the computer program and the generated computer code including the test, so that execution of the compiled object code performs the test for run-time detection of a memory-related error and so that if the evaluation indicates one of the pre-conditions is satisfied the reporting of the presence or absence of a memory-related error reduces the run-time detection of memory-related errors in the compiled object code.

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