Patents
US 7,203,826 B2#24045219 Most CitedExpiredUnited States (USPTO)Utility

Method and apparatus for managing a return stack

4Forward Citations (#24045219 Global)
0.2/yrCitation Velocity (#32185368 Global)
1.50Citation PageRank (#22931977 Global)
11Prior Art Cited
3Claims (1 Indep. · 2 Dep.)
0Drawings / Sheets

Abstract

A processor includes a return stack circuit used for predicting procedure return addresses for instruction pre-fetching, wherein a return stack controller determines the number of return levels associated with a given return instruction, and pops that number of return addresses from the return stack. Popping multiple return addresses from the return stack permits the processor to pre-fetch the return address of the original calling procedure in a chain of successive procedure calls. In one embodiment, the return stack controller reads the number of return levels from a value embedded in the return instruction. A complementary compiler calculates the return level values for given return instructions and embeds those values in them at compile-time. In another embodiment, the return stack circuit dynamically tracks the number of return levels by counting the procedure calls (branches) in a chain of successive procedure calls.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 4.

Claims (3 — 1 Independent, 2 Dependent)

  1. Claim 1Independent Claim

    A method of managing a return stack comprising: determining the number of return levels associated with a return instruction; and popping that number of return addresses from the return stack.

  2. Claim 2Depends on #1

    The method of claim 1 , further comprising providing the last popped return address from the return stack to an instruction pre-fetch unit as the predicted return address for instruction pre-fetching.

  3. Claim 3Depends on #1

    The method of claim 1 , wherein determining the number of return levels associated with a return instruction comprises reading a return-level indicator value associated with the return instruction.

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Non-Patent Literature (1)

  • Return Address Stack Cache; IBM Technical Disclosure Bulletin; vol. 34, No. 11, Apr. 1992, pp. 269-271.