发明名称 METHOD FOR IMPLEMENTING VIRTUAL FUNCTION TABLES IN A COMPILER FOR AN OBJECT-ORIENTED PROGRAMMING LANGUAGE
摘要 A METHOD FOR IMPLEMENTING VIRTUAL FUNCTION TABLES IN A COMPILER FOR AN OBJECT-ORIENTED PROGRAMMING LANGUAGE A method for a computer compiler for an objectoriented programming language for implementing virtual functions is provided. In preferred embodiments of the present invention, the virtual function table for a class contains a tile table and a plurality of sub-tables. The tile table contains pointers to the sub-tables, and the sub-tables contain pointers to the virtual function members of the class. Each child class shares a sub-table of the parent class when the child class does not override a function in that subtable. If the child class overrides a function, then the child is allocated its own sub-table. Each virtual function member for a class is identified by a tile table offset and a sub-table offset.
申请公布号 CA2095692(A1) 申请公布日期 1993.11.07
申请号 CA19932095692 申请日期 1993.05.06
申请人 MICROSOFT CORPORATION 发明人 ADCOCK, JAMES L.
分类号 G06F9/42;G06F9/44;G06F9/45;(IPC1-7):G06F9/45 主分类号 G06F9/42
代理机构 代理人
主权项
地址