Patent ID: 7058935
Filing Date: 2006-06-06
Classification: G06F

Abstract:
1. An optimization method for optimizing a program to increase processing efficiency on a target machine, comprising the steps of: establishing a basic block that includes a Try node for examining, in an object program, a command that may cause an exception process on the target machine to determine whether an exception process has occurred, and a Catch node for performing an inherent process when an exception process has occurred on the target machine; performing optimization of said object program wherein said basic block is established; examining said optimized object program to determine whether a difference in content exists between said command that may cause an exception process on the target machine and an exception handler whereat said exception process is performed; and generating in said Catch node of said basic block when a difference exists, a compensation code for compensating for said difference, and a code for, after said compensation code has been obtained, moving program control to said exception handler whereat said exception process is performed; and wherein said step of examining said object program to determine whether a difference in content exists between said command that may cause an exception process and said exception handler whereat said exception process is performed includes a step of; removing said basic block prepared for said command that may cause an exception process when no difference in content exists.