Patents
US 6,481,007 B1#3197564 Most CitedExpiredUnited States (USPTO)Utility

Optimizing parameter passing

24Forward Citations (#3197564 Global)
1.0/yrCitation Velocity (#6220074 Global)
4.43Citation PageRank (#4028256 Global)
14Prior Art Cited
3Claims (1 Indep. · 2 Dep.)
0Drawings / Sheets

Abstract

A method and system for optimizing the passing of a parameter to a routine is provided. It is determined if any parameters are aliased in a call to a called routine. In the absence of aliases, calling routines passing parameters to called routines using “call by reference”. Recovery mechanisms are provided, when appropriate, when unhandled exception occur during execution of the called routines. According to the method, a recovery mechanism includes encapsulating the called routine and call statement block with a “catch-all” exception handler. The response to an otherwise unhandled exception includes restoring the actual parameter using a stored copy of the actual parameter. The restoration is performed by making a handle point to the copy of the actual parameter that was made before execution of the called routine.

Interactive Citation Constellation Global Citation Ranking

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

Claims (3 — 1 Independent, 2 Dependent)

  1. Claim 1Independent Claim

    A method for executing a call that includes passing a parameter from a calling routine to a called routine, the method comprising the steps of: determining whether the parameter is aliased; if the parameter is not aliased, then generating code to pass the parameter using call by reference; if the parameter is aliased, then generating code to pass the parameter in the call using call by value.

  2. Claim 2Depends on #1

    The method of claim 1 further comprising the step of generating code to encapsulate the call with a catch-all exception handler.

  3. Claim 3Depends on #1

    The method of claim 1 further comprising the steps of: generating code to store a copy of a value held by the parameter, said value being the value of the parameter at the time the call is made; and generating code to replace the para

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 24 total)

References Cited — Backward Prior Art (14)

PatentTitleYearCitations
US 4,860,204 AComputer based workstation for development of graphic representation of computer programs1989130
US 5,161,216 AInterprocedural slicing of computer programs using dependence graphs1992113
US 5,485,616 AUsing program call graphs to determine the maximum fixed point solution of interprocedural bidirectional data flow problems in a compiler1996103
US 5,535,394 AMethods for distinguishing dynamically allocated storage along different call paths and for providing a compact representation of alias analysis199630
US 5,613,117 AOptimizing compiler using templates corresponding to portions of an intermediate language graph to determine an order of evaluation and to allocate lifetimes to temporary names for variables1997221
US 5,671,419 AInterprocedural data-flow analysis that supports recursion while only performing one flow-sensitive analysis of each procedure199746
US 5,761,513 ASystem and method for exception handling in dynamically linked programs1998102
US 5,787,241 AMethod and apparatus for locating exception correction routines199814
US 5,793,944 ASystem for restoring register data in a pipelined data processing system using register file save/restore mechanism199816
US 5,963,739 AMethod for verifying the total correctness of a program with mutually recursive procedures1999113
US 6,038,661 ASingle-chip data processor handling synchronous and asynchronous exceptions by branching from a first exception handler to a second exception handler200038
US 6,173,444 B1Optimizing compilation of pointer variables in the presence of indirect function calls200193
US 6,247,169 B1Structured exception-handling methods, apparatus, and computer program products200167
US 6,295,640 B1Method and apparatus for distinguishing reference values from non-reference values in a runtime environment200117

Non-Patent Literature (4)

  • Chase et al. Analysis of Pointers and Structures. ACM. 1990. pp. 296-310.*
  • Choi et al. Efficient Flow-Sensitive Interprocedural Computation of Pointer-Induced Aliases and Side Effects. ACM. 1993. pp. 232-245.*
  • Deutsch. Interprocedural May-Alias Analysis for Pointers: Beyond k-Limiting. ACM. 1994. pp. 230-241.
  • Landi et al. Interprocedural Modification Side Effect Analysis With Pointer Aliasing. ACM. 1993. pp. 56-67.*