×

Method and apparatus for enabling global compiler optimizations in the presence of exception handlers within a computer program

  • US 5,778,233 A
  • Filed: 10/11/1996
  • Issued: 07/07/1998
  • Est. Priority Date: 10/11/1996
  • Status: Expired due to Fees
First Claim
Patent Images

1. A computer apparatus comprising:

  • (A) an optimizer for optimizing a first instruction stream that is used to generate a second instruction stream, the first instruction stream being generated by a compiler and comprising a plurality of variables, the optimizer including;

    an exception range determiner, the exception range determiner determining at least one exception range of the first instruction stream during which at least one exception may occur;

    a resume point identifier, the resume point identifier identifying at least one resume point within the first instruction stream, each resume point identifying a range of at least one instruction that is executed when the at least one exception occurs;

    a live range calculator, the live range calculator determining the liveness of the plurality of variables, the liveness of a selected variable that is used in the at least one instruction in the exception handling range defined by a resume point before the selected variable is defined extending to at least one instruction within the at least one exception range defined by the exception range determiner; and

    (B) a CPU, the CPU executing the second instruction stream.

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