Generating code that calls functions based on types of memory
Abstract
In an embodiment, in response to reading a declaration of a function that specifies a name of the function and a type of memory on which the function operates, the name of the function, a pointer to the function, and the type are saved to a template. In response to reading a call statement that specifies the name of the function and an identifier of an object, first code is generated. The first code, when executed, reads the pointer to the function from a virtual function table pointed to by the object, finds an entry in the virtual function table that represents the function, and reads the pointer from the entry in the virtual function table. The call statement, when executed, requests a call of the function. Second code is generated that, when executed, calls the function using the pointer read from the virtual function table.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 12 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method comprising: in response to reading a declaration of a function that specifies a name of the function and a type of memory on which the function operates, saving the name of the function, a pointer to the function, and the type of memory to a template, the type of memory being at least one of a plurality of memory types available in a computer system; in response to reading a call statement that specifies the name of the function and an identifier of an object, generating first code that when executed: (a) reads the pointer to the function from a virtual function table pointed to by th
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 (12)
Non-Patent Literature (1)
- Nidhi Aggarwal et al., "Configurable Isolation: Building High Availability Systems with Commodity Multi-Core Processors," ISCA '07, Jun. 9-13, 2007, pp. 470-481, ACM, San Diego, USA.