发明名称 Method for optimizing array bounds checks in programs
摘要 A method and several variants for optimizing the detection of out of bounds array references in computer programs are described, while preserving the semantics of the computer program. Depending on the variant implemented, the program is divided at run-time or compile-time into two or more regions. The regions are differentiated by the number of checks that need to be performed at run-time on the array accesses within the region. In particular, some regions of the program will not need any array bounds checks performed at run-time, which will increase the speed at which the computer program executes. As well, the state of program variables at the time any out of bounds access is detected is the same as the state of the program variables would have been had the transformation not been performed. Moreover, the regions not needing any checks at run-time will be known at compile-time, enabling further compiler optimizations on the region. The variants of the method are distinguished by the number of regions created, the number of checks needed at run-time, and the size of the program that results from the optimization.
申请公布号 US6343375(B1) 申请公布日期 2002.01.29
申请号 US19980066110 申请日期 1998.04.24
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 GUPTA MANISH;MIDKIFF SAMUEL PRATT;MOREIRA JOSE EDUARDO
分类号 G06F9/445;(IPC1-7):G06F9/45 主分类号 G06F9/445
代理机构 代理人
主权项
地址