摘要 |
PROBLEM TO BE SOLVED: To provide a compile method and program for deleting functions to be redundantly generated regardless of whether or not to generate or call a class object. SOLUTION: The compile method described in an object-oriented language to convert an input program having at least one class to an object program includes: a virtual inheritance analysis step S10 for analyzing whether the class in the input program is defined by virtual inheritance; a special function commonalization step S11 for generating a code for commonalizing at least either a plurality or constructors or destructors of the class when the class is not defined by the virtual inheritance as a result of the virtual inheritance analysis step; and a generation step S6 for generating an object program including the code generated by the special function commonalization step. COPYRIGHT: (C)2009,JPO&INPIT
|