发明名称 Array access boundary check by executing BNDCHK instruction with comparison specifiers
摘要 The present invention provides a method and apparatus for executing a boundary check instruction that provides accelerated bound checking. The instruction can be used to determine whether an array address represents a null pointer, and whether an array index is less than zero or greater than the size of the array. Three extensions of a boundary check instruction are provided, with each performing a different combination of three boundary check comparisons. One comparison compares a first operand, which may contain the base address of an array, to zero. Another comparison evaluates the value of a second operand, which may contain an index offset, to determine if it is less than zero. The other comparison evaluates whether the value of the second operand is greater than or equal to a third operand. The third operand may indicate the size of an array. A trap is generated if any of the comparisons evaluates to true.
申请公布号 US6542990(B1) 申请公布日期 2003.04.01
申请号 US20020118388 申请日期 2002.04.08
申请人 SUN MICROSYSTEMS, INC. 发明人 TREMBLAY MARC;O'CONNOR JAMES MICHAEL
分类号 G06F9/30;(IPC1-7):G06F12/06 主分类号 G06F9/30
代理机构 代理人
主权项
地址