Patents
US 6,064,818 A#3404032 Most CitedExpiredUnited States (USPTO)Utility

Straight path optimization for compilers

23Forward Citations (#3404032 Global)
0.9/yrCitation Velocity (#8145039 Global)
4.40Citation PageRank (#4073304 Global)
15Prior Art Cited
2Claims (1 Indep. · 1 Dep.)
0Drawings / Sheets

Abstract

A pragma is defined to indicate straight path optimization for compilers (SPOC). The pragma is inserted into source code to identify the most common case for a branch point in a program flow, determined by analysis of performance data or simple prediction. The compiler employs this information to optimize the common case as a straight path through the function assembler code, removing unnecessary jumps and the nonoptimized case from the function body. The resulting executable code is more compact and executes faster.

Interactive Citation Constellation Global Citation Ranking

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

Claims (2 — 1 Independent, 1 Dependent)

  1. Claim 1Independent Claim

    A method of implementing straight path optimization for compilers, comprising: within source code for a program, inserting a compiler directive at a beginning of source code for a selected path from a branch within the program, wherein the compiler directive designates a path from among at least two alternative paths from the branch to be straight path optimized; and responsive to detecting the compiler directive during compilation of the source code, generating sequential executable instructions for a path designated to be straight path optimized by the compiler directive and placing the ge

  2. Claim 2Depends on #1

    The method of claim 1, further comprising: emplo

Technical Overview & Description

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

References Cited — Backward Prior Art (15)

PatentTitleYearCitations
US 4,229,790 AConcurrent task and instruction processor and method1980175
US 4,943,908 AMultiple branch analyzer for prefetching cache lines199087
US 5,050,068 AMethod and apparatus for using extracted program flow information to prepare for execution multiple instruction streams199170
US 5,226,131 ASequencing and fan-out mechanism for causing a set of at least two sequential instructions to be performed in a dataflow processing computer199340
US 5,241,635 ATagged token data processing system with operand matching in activation frames1993142
US 5,353,418 ASystem storing thread descriptor identifying one of plural threads of computation in storage only when all data for operating on thread is ready and independently of resultant imperative processing of thread199477
US 5,423,048 ABranch target tagging199538
US 5,452,457 AProgram construct and methods/systems for optimizing assembled code for execution1995100
US 5,499,349 APipelined processor with fork, join, and start instructions using tokens to indicate the next instruction for each of multiple threads of execution1996159
US 5,530,964 AOptimizing assembled code for execution using execution statistics collection, without inserting instructions in the code and reorganizing the code based on the statistics collected1996111
US 5,581,762 ACompiling apparatus having a function to analyze overlaps of memory addresses of two or more data expressions and a compiling method199637
US 5,652,889 AAlternate execution and interpretation of computer program having code at unknown locations due to transfer instructions having computed destination addresses1997103
US 5,659,752 ASystem and method for improving branch prediction in compiled program code199778
US 5,835,776 AMethod and apparatus for instruction scheduling in an optimizing compiler for minimizing overhead instructions199891
US 5,857,104 ASynthetic dynamic branch prediction1999111