Error-code and exception-based function dispatch tables
Abstract
A condition detected by a virtual routine may be treated by setting an error code or raising an exception, depending on circumstances. Enhanced vtable layouts promote availability of both error-ID-based and exception-based virtual routines, while maintaining compatibility. Compilers treat virtual routines based on their circumstances. One enhanced vtable includes error-ID-based routine pointers in a COM-layout-compatible portion and exception-based routine pointers in an extension. For a virtual routine not overridden by a derived class, a compiler generates a direct call. For an object instance of a specific type, the compiler generates a direct exception-based call for the object's routine. For a factory-sourced object's routine, the compiler generates a virtual exception-based call. When the virtual routine belongs to a component having an enhanced vtable, the compiler may generate a virtual call using the exception-based routine pointer. Code wrappers between COM and native format may also be used.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-readable storage medium configured with data and with instructions that when executed by at least one processor causes the processor(s) to perform a process for compiling a routine of a software program to provide both compatibility support and speed enhancement support, the process comprising the steps of: locating a routine in a source code of the software program, the located routine having a routine body; providing an enhanced virtual table data structure which contains an exception-based routine pointer for a high-level dispatch and also contains an error-ID-based routine point
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (8)
Non-Patent Literature (5)
- "#import Directive (C/C++)", Retrieved at <<http://msdn.microsoft.com/en-us/library/8etzzkb6(v=VS.100).aspx>>, portion as early as Aug. 3, 2011, pp. 6.
- "#import Directive (C/C++)", Retrieved at >, portion as early as Aug. 3, 2011, pp. 6.
- "Application binary interface", Retrieved at <<http://en.wikipedia.org/wiki/Application—binary—interface>>, Jul. 6, 2012, pp. 3.
- "Application binary interface", Retrieved at >, Jul. 6, 2012, pp. 3.
- "C++ Vtable Example", Retrieved at <<http://sourcery.mentor.com/public/cxx-abi/cxx-vtable-ex.html>>, Sep. 10, 1999, pp. 6.