发明名称 Loop profiling by instrumentation
摘要 The inventive system and method prepares a loop within a section of program code for profiling by placing instrumentation slots into the section at particular points. Entry slots are inserted just prior to the entry point of the loop. If there is a target within the loop of a branch instruction that is located outside of the loop, then the target is changed to point to the first instruction of the entry slots. If there is a fall through within the loop to the entry slots, then a branch instruction is inserted before the first instruction of the entry slots to branch around the entry slots. Exit slots are inserted immediately subsequent to the implicit exit point of the loop, and exit slots are also inserted just prior to the target of the explicit exit instruction. If there is a fall through within the section to the exit slots, then a branch instruction is inserted before a first instruction of the exit slots to branch around the exit slots. The target of the explicit exit instruction is changed to point to the first instruction of the exit slots.
申请公布号 US6088525(A) 申请公布日期 2000.07.11
申请号 US19970878958 申请日期 1997.06.19
申请人 HEWLETT-PACKARD COMPANY 发明人 PERI, RAMESH V.
分类号 G06F11/34;G06F9/45;G06F11/36;(IPC1-7):G06F9/44 主分类号 G06F11/34
代理机构 代理人
主权项
地址