Patent ID: 8612948
Filing Date: 2013-12-17
Classification: G06F

Abstract:
1. A dynamic compiling method for sequentially compiling, in a computer, a partial computer program to be executed, out of a plurality of partial programs included in a computer program, during execution of the program, wherein the computer includes: (i) a shared pool for storing, in each of one or more partial programs in the program executed by the computer; and (ii) an executable instruction stream generated by compiling the partial program in association with a first list of pieces of execution status information, wherein the status information is of an execution environment referred to in each of one or more types of optimization applied to the partial program and a second list of conditions that respective values of the corresponding pieces of execution status information in the first list need to satisfy to achieve an effect of corresponding optimization, and wherein the dynamic compiling method comprises the steps, performed by a processor of the computer, of: acquiring respective values of one or more pieces of current execution status information; reading, from the shared pool, the second list of the conditions associated with an executable instruction stream generated by compiling a partial program that is the same as a partial program to be compiled and determining whether respective values of corresponding pieces of current execution status information satisfy the conditions; and generating an executable instruction stream by compiling the partial program to be compiled on the condition that a result of determination is negative, wherein the executable instruction stream stored in the shared pool in association with the second list of the conditions is reused on the condition that the determination is positive.