Patent ID: 8225299

Claim:
An apparatus having a processor, the apparatus storing machine readable instructions, which when executed cause the apparatus to read a source code of an execution program and convert the read source code into a machine language code, the apparatus comprising: a code analysis unit for performing lexical and syntactic analyses of the source code; an optimization unit for performing a predetermined transformation for the execution program analyzed by the code analysis unit wherein the optimization unit includes: means for detecting a calling procedure and a called procedure in a procedure call within the execution program, and in-lining the called procedure to the calling procedure; means for retracing a control flow from a head of the in-lined called procedure to obtain a plurality of predetermined operations, moving a reference condition for referring to an argument in the called procedure before a row of operation, and copying the operations to insert the copied operations into respective routes branched from a reference condition; and means for eliminating dead operations on a route where the argument is not referred to among the operations inserted into the respective routes branched from the reference condition; and a code generation unit for converting the execution program transformed by the optimization unit into the machine language code.