Patents
US 7,290,255 B2#15119697 Most CitedExpiredUnited States (USPTO)Utility

Autonomic method and apparatus for local program code reorganization using branch count per instruction hardware

7Forward Citations (#15119697 Global)
0.4/yrCitation Velocity (#21719077 Global)
1.82Citation PageRank (#16832127 Global)
50Prior Art Cited
2Claims (1 Indep. · 1 Dep.)
0Drawings / Sheets

Abstract

A method, apparatus, and computer instructions for local program reorganization using branch count per instruction hardware. In a preferred embodiment, a hardware counter is used in the present invention to count the number of times a branch is taken when branch instructions are executed. Branch count statistics generated from the hardware counters are available to a program in order to analyze whether code reorganization is necessary. If reorganization is necessary, the program autonomically reorganizes instructions locally at run time to allow more instructions to be executed prior to taking a branch, so that the number of branches taken is minimized without modifying underlying program code.

Interactive Citation Constellation Global Citation Ranking

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

Claims (2 — 1 Independent, 1 Dependent)

  1. Claim 1Independent Claim

    A method of autonomically reorganizing code of a computer program, comprising the steps of: identifying a plurality of branch instructions for a computer program being compiled; monitoring branch count per instruction statistics, wherein the branch count per instruction statistics are generated from the results of a set of hardware counters associated with the branch instructions that autonomically count branches taken, that are executed in parallel, per instruction of the computer program; determining whether a block of code is to be reorganized based on a number of times a branch is taken pe

  2. Claim 2Depends on #1

    The method of claim 1 , wherein prior to

Technical Overview & Description

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

References Cited — Backward Prior Art (50)

PatentTitleYearCitations
US 4,291,371 AI/O Request interrupt mechanism198187
US 4,316,245 AApparatus and method for semaphore initialization in a multiprocessing computer system for process synchronization1982146
US 5,051,944 AComputer address analyzer having a counter and memory locations each storing count value indicating occurrence of corresponding memory address199158
US 5,103,394 ASoftware performance analyzer1992221
US 5,142,634 ABranch prediction1992254
US 5,212,794 AMethod for optimizing computer code to provide more efficient execution on computers having cache memories1993187
US 5,394,529 ABranch prediction unit for high-performance processor1995149
US 5,581,778 AAdvanced massively parallel computer using a field of the instruction to selectively enable the profiling counter to increase its value in response to the system clock1996122
US 5,659,679 AMethod and apparatus for providing breakpoints on taken jumps and for providing software profiling in a computer system199796
US 5,689,712 AProfile-based optimizing postprocessors for data references199787
US 5,691,920 AMethod and system for performance monitoring of dispatch unit efficiency in a processing system1997116
US 5,752,062 AMethod and system for performance monitoring through monitoring an order of processor events during execution in a processing system1998136
US 5,768,500 AInterrupt-based hardware support for profiling memory system performance1998306
US 5,774,724 ASystem and method for acquiring high granularity performance data in a computer system1998147
US 5,794,028 AShared branch prediction structure199886
US 5,930,508 AMethod for storing and decoding instructions for a microprocessor having a plurality of function units1999114
US 5,937,437 AMethod and apparatus for monitoring address translation performance199994
US 5,938,778 ASystem and method for tracing instructions in an information handling system without changing the system source code1999113
US 5,938,760 ASystem and method for performance monitoring of instructions in a re-order buffer199969
US 5,940,618 ACode instrumentation system with non intrusive means and cache memory optimization for dynamic monitoring of code segments1999163
US 5,950,009 AMethod and apparatus for profile-based reordering of program portions in a computer program1999126
US 5,950,003 AProfile instrumentation method and profile data collection method1999176
US 5,966,537 AMethod and apparatus for dynamically optimizing an executable computer program using input data1999155

Non-Patent Literature (5)

  • A. Ramirez, J. L. Larriba-Pey, and M. Valero. The effect of code reordering on branch prediction. Proceedings of the Intl. Conference on Parallel Architectures and Compilation Techniques, pp. 189-198, Oct. 2000.
  • Aho et al. "Compilers: Principles, Techniques, and Tools", 1988, Addison-Wesley, pp. 488-497.
  • Chang, P. P., Mahlke, S. A., and Hwu, W. W. 1991. Using profile information to assist classic code optimizations, Softw. Pract. Exper. 21, 12 (Dec. 1991), 1301-1321.
  • Cohen et al., "Hardware-Assisted Characterization of NAS Benchmarks", Cluster Computing, V I. 4, No. 3, Jul. 2001, pp. 189-196.
  • Conte, T. M., Menezes, K. N., and Hirsch, M. A. 1996. Accurate and practical profile-driven compilation using the profile buffer. In Proceedings of the 29th Annual ACM/IEEE international Symposium on Microarchitecture (Paris, France, Dec. 2-4, 1996). International Symposium on Microarchitecture. IEE