Dynamic allocation of registers to procedures in a digital computer
Abstract
In a digital computer, a circular queue of registers in a register file are allocated as temporary local storage for procedures rather than using the known caller/callee save convention in order to minimize main memory references. A called procedure dynamically allocates local registers as needed without regard to registers used by the caller of the procedure or by any callee of the procedure, whereby register allocation is not restricted by any predetermined window size. Local registers, including parameter passing registers, are allocated in the called procedure, rather than a priori at compile time, by adjusting register stack pointer values. Only the number of registers actually required by the procedure need by allocated. Optionally, rotating registers may be allocated among the local registers. Stack pointer values are stored in one of the parameter passing registers when a procedure is called. Hardware register file access circuitry maps virtual register numbers used by the procedures into the hardware register file. Upon return from a procedure, registers are deallocated by adjusting the register stack pointers to the values stored when the procedure was called.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 69.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of dynamically allocating registers to procedures in a digital computer without compiler intervention, the method comprising the steps of: defining a logical register stack comprising a plurality of stack registers; initializing a local relocation term (lrel) so as to define an offset for mapping the logical register stack into the physical register set; allocating to a first procedure an arbitrary number of stack registers specified by the first procedure as local registers by initializing a first stack pointer value (TOL) so as to delimit the local registers in the logical regis
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 69 total)
References Cited — Backward Prior Art (15)
Non-Patent Literature (4)
- Hennessy et al., "Computer Architecture A Quantitative Approach" 1990, pp. 432-448, 450-453.
- Hennessy et al., Computer Architecture A Quantitative Approach 1990, pp. 432 448, 450 453.
- Patterson and Hennessy; Computer Archtecture A Quantitative Approach; pp. 450 454, 484, 486, 487.
- Patterson and Hennessy; Computer Archtecture A Quantitative Approach; pp. 450-454, 484, 486, 487.