期刊文献+

面向对象程序设计语言的绑定时间分析技术 被引量:5

A Technology of Binding Time Analysis for Object-Oriented Programming Languages
下载PDF
导出
摘要 为了实现面向对象语言的部分求值,提出了一种绑定时间分析技术.该技术通过针对引用类型变量和指针变量的上下文敏感分析,能够比较精确地分析面向对象语言中诸如对象元素、数组元素等复杂数据结构元素的绑定时间,进而扩大了部分求值的作用范围.这种方法采用两层BTA环境来保存静态变量和局部变量的BTA状态,设置一种专用句柄来表示不同程序点创建的对象,进而采用这种句柄的集合表示引用类型变量的BTA状态.在为面向对象语言程序标注绑定时间信息的过程中,采用一个正向分析和一个反向分析过程,借助于BTA环境来跟踪和设定各种变量、对象和引用变量的绑定时间.该技术已经用于实现Java程序的绑定时间分析,能够有效地分析大多数单线程的Java程序,为实现高性能Java程序部分求值提供了必要的手段. A technology of binding time analysis for implementing partial evaluation of object-oriented programming languages is proposed in this paper. By tracing context-sensitivity of reference variables and pointer variables, the new approach can deal with elements of partly static data structure, such as attributes of each object and elements of each array. The new approach uses a two-level BTA environment to hold BTA states for static variables and local variables. The objects created at different program points are represented by a kind of specific handle. The BTA state of a reference variable is represented by a set of such handles. The algorithm of a forward analysis and backward analysis are presented. They are used to annotate source program, with BTA environment to trace binding time of various kind of variables including identifier of array, object and reference. The binding time analysis has been implemented for Java. It is able to analyse most single thread Java programs and support partial evaluation for Java with higher performance.
出处 《软件学报》 EI CSCD 北大核心 2003年第3期415-421,共7页 Journal of Software
基金 Supported by the National Natural Science Foundation of China under Grant No.60173013 (国家自然科学基金) the Natural Science Foundation of Beijing City of China under Grant No.4982002 (北京市自然科学基金) the Assisting Project of Ministry of Educ
关键词 面向对象 程序设计语言 绑定时间分析技术 程序静态分析 binding time analysis partial evaluation object-oriented programming language Java language
  • 相关文献

参考文献5

  • 1[1]Anderson LO. Program analysis and specialization for the C programming language . Copenhagen: Department of Computer Science, University of Copenhagen, 1994.
  • 2[2]Consel C, Noel F. A general approach for run-time specialization and its application to C. In: Proceedings of the Conference Record of the 23rd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages. St. Petersburg Beach, FL: ACM Press, 1996. 145~156.
  • 3[3]Grant B, Mock M, Philipose M, Chambers C, Eggers SJ. Annotation-Directed run-time specialization in C. In: ACM SIGPLAN Symposium on Partial Evaluation and Semantice-Based Program Manipulation. Amsterdam: ACM Press, 1997. 163~178.
  • 4[4]Hornof L, Noye J, Consel C. Effective specialization of realistic programs via use sensitivity. Lecture Notes in Computer Science, 1997,1302:293~314.
  • 5[5]Hornof L, Noye J. Accurate binding time analysis for imperative languages: flow, context and return sensitivity. In: ACM SIGPLAN Symposium on Partial Evaluation and Semantics-Based Program Manipulation (PEPM'97). Amsterdam: ACM Press, 1997. 63~73.

同被引文献20

  • 1吴晶,廖湖声.实现函数式语言部分求值器的约束时间分析[J].计算机工程与科学,1997,19(1):48-52. 被引量:1
  • 2[1]http://www.w3.org/TR/xquery-full-text,2006-01.
  • 3[2]N D Jones,et al.Partial Evaluation and Automatic Program Generation[A].International Series in Computer Science[M].Prentice Hall,1993.
  • 4Jones N D,Gomard C,Sestoft P.Partial Evaluation and Automatic Program Generation[M].New York:Prentice-Hall,1993-06.
  • 5Schultz U P,Lawall J L,Consel C,et al.Toward Automatic Specialization of Java Programs[C].In 13th ECOOP,LNCS 1628,Springer-Verlag,1999-06:367-390.
  • 6Knoblock T B,Ruf E.Data Specialization[C].Proceedings of the ACM SIGPLAN '96 Conference on PLDI,1996-05:215-225.
  • 7Le Meur A-F,Lawall J L,Consel C. Towards bridging the gap between progamming language and partial evaluation. In: ACM SIGPLAN Workshop on Partial Evaluation and Semantics-BasedProgram Manipulation (PEPM '02), 2002
  • 8Berlin A,Surati R. Partial evaluation for scientific computing: The supercomputer toolkit experience. In:ACM SIGPLAN Workshop on Partial Evaluation and Semantics-Based ProgramManipulation, 1994
  • 9Andersen P. Partial evaluation applied to ray tracing. In: W. Mackens, S. Rump, eds. Software Engineering in ScientificComputing,Vieweg, 1996. 78~85
  • 10Pu C, et al. Optimistic incremental specialization: streamling a commercial operating system. In: Proc. of the Fifteenth ACM Symposium on Operating System Principle, Copper Mountain,CO, Dec. 1995

引证文献5

二级引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部