Patent ID: 7240337

Claim:
A program conversion method comprising the steps of: using a computer, reading a source code of an execution program written in an object-oriented programming language and converting it into a machine language code, without executing an analysis in an invocation method; reading said execution program to be processed from a memory, and for a method in said execution program, finding a range in which an object in said execution program created in said method does not escape by: finding a set of objects which are created in said method and do not escape, for each basic block with forward data flow analysis, and examining commands in said basic block sequentially from beginning, and finding a set of objects which are created in said method and do not escape, in a location of each of the commands; executing scalar replacement in the range in which said object does not escape by: determining the range in which said object is not referred to from outside by finding a set of objects which are created in said method and not written in a global memory, for each basic block of said execution program; and storing the execution program on which said scalar replacement is executed, in the memory.