摘要 |
PROBLEM TO BE SOLVED: To provide a program converting device for reducing the number of execution type instructions to be generated in converting virtual function calling in a specific case into an execution type program in a program described in object directional language. SOLUTION: An optimization information adding device 100 stores a source program including class definition including a class and a virtual function and a base class and a calling instruction for calling a virtual function, and detects any class which is not inherited by the other class, and adds optimization information to the class definition including the detected class. A compiler device 110 reads a calling instruction from a source program, and judges whether or not a virtual function belongs to the class which is not inherited by the other class by using the optimization information included in the source program, and generates an execution type instruction group for directly calling the virtual function.
|