Patents
US 7,610,474 B2#20910041 Most CitedActiveUnited States (USPTO)Utility

Mechanism for hardware tracking of return address after tail call elimination of return-type instruction

5Forward Citations (#20910041 Global)
0.3/yrCitation Velocity (#26199518 Global)
1.48Citation PageRank (#23353934 Global)
14Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A technique maintains return address stack (RAS) content and alignment of a RAS top-of-stack (TOS) pointer upon detection of a tail-call elimination of a return-type instruction. In at least one embodiment of the invention, an apparatus includes a processor pipeline and at least a first return address stack for maintaining a stack of return addresses associated with instruction flow at a first stage of the processor pipeline. The processor pipeline is configured to maintain the first return address stack unchanged in response to detection of a tail-call elimination sequence of one or more instructions associated with a first call-type instruction encountered by the first stage. The processor pipeline is configured to push a return address associated with the first call-type instruction onto the first return address stack otherwise.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    An apparatus comprising: a processor pipeline; and at least a first return address stack for maintaining a stack of return addresses associated with instruction flow at a first stage of the processor pipeline, the processor pipeline being configured to maintain the first return address stack unchanged in response to detection of a tail-call elimination sequence of one or more instructions including (i) a first call-type instruction encountered by the first stage and an instruction in a delay slot for said first call-type instruction wherein said instruction in said delay slot is indicative of

Technical Overview & Description

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

References Cited — Backward Prior Art (14)

PatentTitleYearCitations
US 5,561,775 AParallel processing apparatus and method capable of processing plural instructions in parallel or successively199633
US 5,935,238 ASelection from multiple fetch addresses generated concurrently including predicted and actual target by control-flow instructions in current and previous instruction bundles199939
US 5,949,996 AProcessor having a variable number of stages in a pipeline199931
US 5,964,868 AMethod and apparatus for implementing a speculative return stack buffer1999111
US 5,964,869 AInstruction fetch mechanism with simultaneous prediction of control-flow instructions199936
US 6,035,118 AMechanism to eliminate the performance penalty of computed jump targets in a pipelined processor200022
US 6,101,326 AMethod and apparatus for frame elimination for simple procedures with tail calls200020
US 6,314,514 B1Method and apparatus for correcting an internal call/return stack in a microprocessor that speculatively executes call and return instructions200143
US 6,374,350 B1System and method of maintaining and utilizing multiple return stack buffers200224
US 2003131220 A1Bi-directional return register stack recovery from speculative execution of call/return upon branch misprediction—4
US 6,625,719 B2Processing devices with improved addressing capabilities systems and methods200334
US 6,898,699 B2Return address stack including speculative return address buffer with back pointers200538
US 7,130,972 B2Function execution method, function execution apparatus, computer program and recorded medium20067
US 2007061555 A1Call return tracking technique—19

Non-Patent Literature (5)

  • Desmet, Veerle et al., "Correct Alignment of a Return-Address-Stack after Call and Return Mispredictions", Proceedings of the 4th Workshop on Duplicating, Deconstructing, and Debunking, held in Conjunction with the 32nd International Symposium on Computer Architecture, 2005, pp. 25-33.
  • Hennessy, John L. and Patterson, David A., Computer Architecture A Quantitative Approach, Third Edition, 2003, pp. 224-240, Morgan Kaufman Publishers, USA.
  • Hennessy, John, Patterson, David. "Computer Architecture: A Quatitative Approach" Morgan Kaufmann, May 2002, pp. A-22 to A-29.
  • Return-Address Stack, http://www.usenix.org/events/sec01/full-papers/frantzen/frantzen-html/node 11.html, 2 pp.
  • Skadron et al. "Improving Prediction for Procedure Returns with Return-Address-Stack Repair Mechanisms" Proceedings of the 31st Annual ACM/IEEE International Symposium on Microarchitecture. IEEE Comp. Soc., Los Almitos, CA, Nov. 30, 1998, pp. 259-271. (XP000871947) .