Patents
US 8,291,397 B2#29523362 Most CitedActiveUnited States (USPTO)Utility

Compiler optimized function variants for use when return codes are ignored

3Forward Citations (#29523362 Global)
0.2/yrCitation Velocity (#32286019 Global)
1.30Citation PageRank (#28520742 Global)
12Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A mechanism and functionality are provided for generating and using compiler optimized function variants. These variants may be used, for example, in situations where return values of functions called by code are not thereafter used by the code calling the functions. In particular, for a function called by computer code, at least two variants for the function may be generated. A function call, for calling the function, within original computer code may be analyzed to determine which variant of the at least two variants to use for the function call. The function call may be modified in the original computer code, to generate modified computer code, based on results of the analysis identifying which variant of the at least two variants to use for the function call.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method, in a data processing system, for compiling computer code, comprising: for a function called by computer code, generating at least two variants for the function; storing the at least two variants for the function in a variant storage device, wherein a first variant for the function of the at least two variants comprises first code of the function that is unchanged from an original version of the code for the function, and wherein a second variant for the function of the at least two variants comprises second code of the function in which return value code directed to generating a retu

Technical Overview & Description

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

Non-Patent Literature (1)

  • Davidson, "A Study of a C Function Inliner", Aug. 1998, Johyn Wiley & Sons,vol. 18(8), p. 775-790.