Patent ID: 7373641
Filing Date: 2008-05-13
Classification: G06F

Abstract:
1. A computer method comprising converting a program which reads in a source code of an execution program written in a high level object-oriented programming language and converts it into a machine language code, the step of converting comprising steps of: performing a plurality of multilevel method invocations to generate a piece of information, wherein said source code has each function from a plurality of functions formed into a separate component and comprising at least one object generated on a heap and comprising a value written on the heap which can be globally referenced, reading out an execution program to be processed from a memory and examining whether a use of an object reference during a method invocation is an argument in which an element of an object is not used for a particular method invocation in the execution program, said particular method invocation being at least one invocation from the plurality of multilevel method invocations performed to generate the piece of information; eliminating a predetermined code in the particular method invocation with dead code elimination, if the particular method invocation does not globalize the object reference during the particular method invocation and if a use of each object reference during the particular method invocation is an argument in which an element of the object is not used, for a predetermined method invocation in said execution program; inline-expanding the particular method invocation prior to said step of eliminating a code of the particular method invocation with dead code elimination, and when a callee routine is inlined to the caller, callee code is optimized as a part of the caller code; and storing an execution program, of which a code has been eliminated, into a memory.