Instruction encoding to indicate whether to store argument registers as static registers and return address in subroutine stack
Abstract
A method and apparatus provide means for saving and restoring processor register values and allocating and deallocating stack memory. A first field of a save instruction encodes whether a value in a register of a processor is saved as a static value. A second field of the save instruction encodes whether a value in a register of a processor is saved as an argument value. A third field of the save instruction encodes a size of a stack frame created during execution of the save instruction. An argument value is saved in a calling program's stack frame. A static value is saved in a called program's stack frame. A restore instruction is used to restore static values and deallocate the stack frame. The save and restore instructions may be executed using any programmable device, including a single instruction set architecture processor or a multi-instruction set architecture processor.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 50 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer readable storage medium having encoded thereon computer readable program code for encoding source code for execution on a microprocessor system having a plurality of registers in a register bank wherein at least one register is defined as an argument register, at least one register is defined as a static register, at least one register is defined as a stack pointer register, and at least one register is defined as a return address register, the computer readable program code comprising: computer readable program code for encoding in an instruction whether any or all of the argument
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (50)
Non-Patent Literature (5)
- ARM Architecture Reference Manual, Advanced RISC Machines Ltd., Prentice Hall, pp. 3-41, 3-42, 3-43, 3-67 and 3-68 (1996).
- ARM Architecture Reference Manual, Document No. ARM DDI 0100B, Prentice Hall, New York, New York, 1996, pp. 6-62 through 6-65.
- Case, B., "ARM Architecture Offers High Code Density," Microprocessor Report, vol. 5, No. 23, pp. 1 and 11-14, (Dec. 18, 1991).
- Cobb, P., "TinyRISC: a MIPS-16 embedded CPU core," Presentation for Microprocessor Forum, 13 slides (7 pages), (Oct. 22-23, 1996).
- CompactRISC(TM) CR16B Programmer's Reference Manual, National Semiconductor Corporation, Santa Clara, CA, Sep. 1999, pp. Instruction Set 5-44 through Instruction Set 5-47.