首页> 外国专利> Method for implementing virtual function tables in a compiler for an object-oriented programming language

Method for implementing virtual function tables in a compiler for an object-oriented programming language

机译:在面向对象的编程语言的编译器中实现虚拟功能表的方法

摘要

A method for a computer compiler for an object-oriented 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 sub-table. 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.
机译:提供了一种用于计算机编译器的用于实现虚拟功能的面向对象的编程语言的方法。在本发明的优选实施例中,用于一类的虚拟功能表包含瓦片表和多个子表。切片表包含指向子表的指针,子表包含指向类的虚函数成员的指针。当子类未覆盖该子表中的函数时,每个子类将共享父类的子表。如果子类覆盖函数,则将为子代分配自己的子表。一个类的每个虚函数成员由一个平铺表偏移量和一个子表偏移量标识。

著录项

  • 公开/公告号US5327562A

    专利类型

  • 公开/公告日1994-07-05

    原文格式PDF

  • 申请/专利权人 MICROSOFT CORPORATION;

    申请/专利号US19920880168

  • 发明设计人 JAMES L. ADCOCK;

    申请日1992-05-06

  • 分类号G06F9/45;

  • 国家 US

  • 入库时间 2022-08-22 04:31:28

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号