Patents
US 6,446,259 B2#2671637 Most CitedExpiredUnited States (USPTO)Utility

System and method for generating an object structure at run time in an object-oriented programming language

27Forward Citations (#2671637 Global)
1.1/yrCitation Velocity (#5562037 Global)
4.69Citation PageRank (#3678657 Global)
10Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A language translator is provided which determines memory structure at compile time for a plurality of object classes including at least one virtual base class and at least one class derived therefrom. At compile time, space for pointers (b-pointers) is set aside in each class object that will have a base table (b-table) associated therewith. The b-pointers point, at run time, to an associated b-table containing memory offsets between the base classes of the derived class. At run time, constructors construct the class objects, starting from the most derived class object and proceeding through to the base class object. However, instead of generating the virtual tables and associated pointers, as well as the adjusting functions, at compile time, the language translator generates the code for these operation to be executed at run time. Then at run time, a virtual function table is generated for the base class. Since the necessary offsets are known at run time, all of the adjusting functions, the virtual function tables, and the virtual pointers may be generated. Thus, the system completes the construction of an object.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 27.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method for generating an object data structure, comprising the steps of: determining a base class offset between a virtual base class and a derived class, said derived class derived from said virtual base class; generating a base table for said derived class, said base table including said base class offset; using a compiler to generate computer program code for being executed at run time to create at run time a virtual function table for said base class and all adjusting functions for said virtual base class, the virtual function table containing pointers to said adjusting functions; and at

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗