Compile method, exception handling method and computer
AssigneeInternational Business Machines Corporation
InventorsHideaki Komatsu, Takeshi Oqasawara
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorsHideaki Komatsu, Takeshi Oqasawara
Estimating the term…
The present invention enables re-ordering of instructions to be executed while assuring a precise exception. In Java language, an optimization process of re-ordering instructions to be executed is performed by Just-In-Time compiler. For instance, the instructions lining in order from instruction E1 which was moved forward to instruction S2which had been located before E1 is registered as interrupt inhibited section R1, and from instruction S4 which was moved forward to instruction S3 which had been located before S4 is registered as interrupt inhibited section R2 (S is an instruction which has an affect observable from the outside at the execution, and E is an instruction which may cause an exception). Also, in FIG. 7, S4 which was an instruction behind E1 in the original order is registered as R1's instruction invalid at an exception. If E1 causes an exception, an interrupt handler is activated and the instructions of interrupt inhibited section R1 are copied to another area. S4 is not copied in that case. In addition, a branch code to an exception handling routine is attached to the end of the copy. If execution is restarted from S1, the instructions required to be executed for assuring the precise exception are executed, and it may move on to an exception handling routine thereafter.
A method for compiling a program which is enabled for precise exception handling during execution of the program, comprising the steps of:
A method for executing a precise exception during execution of a program, said method comprising the steps of:
A computer comprising a compiler for compiling a program which is enabled for precise exception handling during execution of the program, said compiler comprising of:
A computer for executing a precise exception during execution of a program, said computer comprising:
A storage medium for storing a compiler for causing a computer to compile a program which is enabled for precise exception handling during execution of the program, said compiler comprising:
A storage medium for storing a program which is enabled to execute a precise exception during execution of the program, said program comprising the steps of:
Dependencies are inferred from the claim text.