Invention Grant
- Patent Title: Rewriting branch instructions using branch stubs
- Patent Title (中): 使用分支存根重写分支指令
-
Application No.: US12823204Application Date: 2010-06-25
-
Publication No.: US08522225B2Publication Date: 2013-08-27
- Inventor: Tong Chen , Brian Flachs , Brad W. Michael , Mark R. Nutter , John K. P. O'Brien , Kathryn M. O'Brien , Tao Zhang
- Applicant: Tong Chen , Brian Flachs , Brad W. Michael , Mark R. Nutter , John K. P. O'Brien , Kathryn M. O'Brien , Tao Zhang
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agent Stephen J. Walder, Jr.; Matthew B. Talpis
- Main IPC: G06F9/45
- IPC: G06F9/45

Abstract:
Mechanisms are provided for rewriting branch instructions in a portion of code. The mechanisms receive a portion of source code having an original branch instruction. The mechanisms generate a branch stub for the original branch instruction. The branch stub stores information about the original branch instruction including an original target address of the original branch instruction. Moreover, the mechanisms rewrite the original branch instruction so that a target of the rewritten branch instruction references the branch stub. In addition, the mechanisms output compiled code including the rewritten branch instruction and the branch stub for execution by a computing device. The branch stub is utilized by the computing device at runtime to determine if execution of the rewritten branch instruction can be redirected directly to a target instruction corresponding to the original target address in an instruction cache of the computing device without intervention by an instruction cache runtime system.
Public/Granted literature
- US20110321002A1 Rewriting Branch Instructions Using Branch Stubs Public/Granted day:2011-12-29
Information query