Compilation method without explicit symbol table for saving memory
Abstract
There is described a method of compiling source code for a computer program into corresponding object code. The source code includes several declared variables. The method comprises, for each declared variable in the source code, including in the object code a declaration statement indicating an associated memory location for that variable and indicating the position in the object code of the next declaration statement. During compilation, the memory location for each declared variable can be retrieved from the object code by examining each declaration statement in turn, using the position information from each declaration statement to locate the next declaration statement. This is of particular advantage where the available volatile memory is limited, because there is no requirement for a look-up table of variables against memory locations.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 25 · Forward citations: 1.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method of compiling source code for a computer program into object code, the method comprising: for each of a plurality of declared variables in the source code, including in the object code a declaration statement indicating an associated memory location for that variable and indicating the object code location of the next declaration statement; whereby, as the source code is being compiled into object code, the memory location for each of the plurality of declared variables can be retrieved from the object code by examining each declaration statement in turn, using the object code location
- Claim 2Depends on #1
The method as claimed in claim 1 , wherein the declaration statement indicates a relative location of the next declaration statement.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (1 of 1 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 8,881,126 B2 | Systems and methods for testing a compiler through compile-time decision feedback | 2014 | 1 |
References Cited — Backward Prior Art (25)
Non-Patent Literature (4)
- Frantisek Franek: "Memory as a Programming Concept in C and C++ (chapter 2)"; 2004, Cambridge University Press, p. 7-paragraph 1, p. 14-paragraph 1, Figures 2.1, 2.3 and 2.4.
- Fraser C W et al: "A Code Generation Interface for Ansi C" Software Practice & Experience, Wiley & Songs, Bognor Regis, GB, vol. 21, No. 9, Sep. 1, 1991 pp. 963-988, 27 pages.
- International Search Report from PCT Application No. PCT/GB2008/002535 (published as WO 2009/013498) dated Oct. 30, 2008; 2 pgs. The instant application is a national phase of PCT/GB2008/002535 (WO 2009/013498).
- Nelson P A: "A comparison of PASCAL intermediate languages" SIGPLAN Notices Use, vol. 14, No. 8, Aug. 1979, pp. 208-213, 6 pages.