摘要 |
PROBLEM TO BE SOLVED: To provide a program conversion method for converting virtual function access into direct function access in order to improve execution performance and reduce a code size. SOLUTION: All classes included in a program 111 are extracted and succession relation among the classes is analyzed to obtain class succession relation information 113 (S104). Whether the virtual function of the classes redefines a virtual function of a base class or not is analyzed and virtual function redefinition information 114 is obtained (S105). In the program 111, a directly accessed virtual function and a start object are analyzed to obtain virtual function direct access information 115 (S107). While referring to the class succession relation information 113, the virtual function redefinition information 114 and the virtual function direct access information 115, whether the virtual function access can be converted into the direct function access or not is decided, and when the conversion is possible, the virtual function access is converted into the direct function access (S108). COPYRIGHT: (C)2006,JPO&NCIPI
|