System and method for providing run-time type checking
First Claim
1. A method for providing run-time type checking comprising steps of:
- generating a checksum corresponding to the form of an object in a program;
storing the checksum in the object;
computing a run-time checksum corresponding to the form of the object during execution of the program;
executing the object if the checksum equals the run-time checksum; and
skipping execution of the object if the checksum does not equal the run-time checksum.
6 Assignments
0 Petitions
Accused Products
Abstract
The present invention provides systems and methods for providing run-time type checking to prevent software errors. In architecture, a representative system includes a compiler that parses a program and further comprises a logic that generates a checksum for a block of code in the program, a logic that stores the checksum in the block of code, and a logic that inserts checksum instruction code into the block of code. The present invention can also be viewed as a method for providing run-time type checking to prevent software errors. A representative method operates by generating a checksum for a block of code in the program, and storing the checksum in the block of code. During execution of the program, a run-time checksum is generated for the block of code, and the block of code is executed if the checksum equals the run-time checksum, and the execution of the block of code is skipped if the checksum does not equals the run-time checksum.
-
Citations
19 Claims
-
1. A method for providing run-time type checking comprising steps of:
-
generating a checksum corresponding to the form of an object in a program; storing the checksum in the object; computing a run-time checksum corresponding to the form of the object during execution of the program; executing the object if the checksum equals the run-time checksum; and skipping execution of the object if the checksum does not equal the run-time checksum. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A system for providing run-time type checking, comprising:
-
means for generating a checksum corresponding to the form of an object in a program; means for storing the checksum in the object; and means for computing a run-time checksum corresponding to the form of the object during execution of the program, wherein the computing means executes the object if the checksum equals the run-time checksum, and skips execution of the object if the checksum does not equal the run-time checksum, said means for computing comprising a processor. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A computer readable electronic storage medium executing computer readable instructions for providing run-time type checking, comprising:
-
logic for generating a checksum corresponding to the form of an object in a program; logic for storing the checksum in the object; and logic for computing a run-time checksum corresponding to the form of the object during execution of the program, wherein the computing logic executes the object if the checksum equals the run-time checksum, and skips execution of the object if the checksum does not equal the run-time checksum. - View Dependent Claims (12, 13, 14, 15)
-
-
16. A system for providing run-time type checking, comprising:
a compiler that parses a program, wherein the compiler further comprises; logic that generates a checksum corresponding to the form of an object in the program; logic that stores the checksum in the object; and logic that inserts checksum instruction code into the object. - View Dependent Claims (17, 18, 19)
Specification