Experiments in Cost Analysis of Java']Java Bytecode

被引:7
作者
Albert, E. [1 ]
Arenas, P. [1 ]
Genaim, S. [2 ]
Puebla, G. [2 ]
Zanardini, D. [2 ]
机构
[1] Univ Complutense Madrid, DSIC, Madrid, Spain
[2] Tech Univ Madrid, Madrid, Spain
关键词
Cost analysis; !text type='Java']Java[!/text] bytecode; cost relations; recurrence equations; complexity;
D O I
10.1016/j.entcs.2007.02.061
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Recently, we proposed a general framework for the cost analysis of Java bytecode which can be used for measuring resource usage. This analysis generates, at compile-time, cost relations which define the cost of programs as a function of their input data size. The purpose of this paper is to assess the practicality of such cost analysis by experimentally evaluating a prototype analyzer implemented in Ciao. With this aim, we approximate the computational complexity of a set of selected benchmarks, including both well-known algorithms which have been used to evaluate existing cost analyzers in other programming paradigms, and other benchmarks which illustrate object-oriented features. In our evaluation, we first study whether the generated cost relations can be automatically solved. Our experiments show that in some cases the inferred cost relations can be automatically solved by using the Mathematica system, whereas, in other cases, some prior manipulation is required for the equations to be solvable. Moreover, we experimentally evaluated the running time of the different phases of the analysis process. Overall, we believe our experiments show that the efficiency of our cost analysis is acceptable, and that the obtained cost relations are useful in practice since, at least in our experiments, it is possible to get a closed form solution.
引用
收藏
页码:67 / 83
页数:17
相关论文
共 21 条
[1]  
Aho A. V., 1974, DESIGN ANAL COMPUTER
[2]  
Aho AV, 1986, COMPILERS PRINCIPLES
[3]  
Albert E, 2005, LECT NOTES COMPUT SC, V3452, P380
[4]  
Albert E., 2006, CLIP1020060 TECHN U
[5]  
Albert E., 2007, 16 EUR S PROGR ESOP
[6]  
Bagnara R., PARMA U RECURRENCE R
[7]   A Static Analysis for Synthesizing Parametric Specifications of Dynamic Memory Consumption [J].
Braberman, Victor ;
Garbervetsky, Diego ;
Yovine, Sergio .
JOURNAL OF OBJECT TECHNOLOGY, 2006, 5 (05) :31-58
[8]  
Bueno F., 2006, TECHNICAL REPORT
[9]  
Crary K., 2000, POPL
[10]  
DEBRAY SK, 1993, TOPLAS, V15