发明名称 System and method using a hardware embedded run-time optimizer
摘要 The inventive mechanism has a run-time optimization system (RTOS) embedded in hardware. When the code is first moved into Icache, a threshold value is set into a counter associated with the instruction or instruction bundle of the particular cache line of the Icache. Each time the instruction or instruction bundle is executed and retired, the counter is decremented by one. When the counter reaches zero, a trap is generated to inform that the code is hot. A trace selector will form a trace starting from the hot instruction (or instruction bundle) from the Icache line. The Icache maintains branch history information for the instructions in each cache line which is used to determine whether a branch should be predicted as taken or fall through. After the trace is formed, it is optimized and stored into a trace memory portion of the physical memory. The mapping between the original code of the trace and the optimized trace in the trace memory is maintained in a mapping table. The processor consults the mapping table to lead the execution to the optimized code in trace memory. Thus, subsequent execution uses the code in trace memory.
申请公布号 US6453411(B1) 申请公布日期 2002.09.17
申请号 US19990252170 申请日期 1999.02.18
申请人 HEWLETT-PACKARD COMPANY 发明人 HSU WEI C.;BENITEZ MANUEL
分类号 G06F9/00;G06F9/38;G06F11/34;G06F12/08;G06F15/00;(IPC1-7):G06F15/00 主分类号 G06F9/00
代理机构 代理人
主权项
地址