用户名: 密码: 验证码:
A comprehensive approach to array bounds check elimination for Java.
详细信息   
  • 作者:Qian ; Feng.
  • 学历:Master
  • 年:2001
  • 导师:Hendren, Laurie
  • 毕业院校:McGill University
  • 专业:Computer Science.
  • ISBN:0612704890
  • CBH:MQ70489
  • Country:Canada
  • 语种:English
  • FileSize:3429471
  • Pages:97
文摘
We present a new approach to eliminate array bounds checks in Java by using static analyses. Our approach is based upon a flow-sensitive intraprocedural analysis called variable constraint analysis (VCA). VCA collects constraints between locals related to array references. The array bounds check problem is formulated as solving a system of difference constraints. The analysis builds a small constraint graph for each important point in a method, and then computes the shortest-path weight of the graph. The shortest-path weights from upper bound to array index and from the index to lower bound indicates the safety of checks. Using VCA as the base analysis, we also show how two further analyses can improve the results of VCA. Array field analysis is applied on each class and provides information about some arrays stored in fields, while rectangular array analysis is an interprocedural analysis to approximate the shape of arrays, and is useful for finding rectangular (non-ragged) arrays.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700