首页> 外文会议>Australasian Software Engineering Conference >Revealing Implicit Correspondence between Bytecode Instructions and Expressions Determined by Java Compilers
【24h】

Revealing Implicit Correspondence between Bytecode Instructions and Expressions Determined by Java Compilers

机译:揭示字节码指令和Java编译器确定的表达式之间的隐式对应

获取原文

摘要

Most Java debuggers designate a source code line as the executed part in the source code at each step-by-step execution. Such designation is based on compilation results which give line numbers to byte code instructions executed at debugging. Because a source code line contains many expressions in general, debugger users must simulate microscopic executions of such contained expressions in their mind. This kind of internal simulation is one of the causes of inefficiency at debugging. We aim at supporting an implementation of a feature to designate expressions instead of source code lines. As its first step, we propose a method to examine how a given compiler maps bytecode instructions to expressions. The key idea of our method is to decompose lexical tokens in each expression into different source code lines. Because of the one-to-one correspondence between line numbers and tokens obtained by our decomposition, we can reveal hidden intention of a compiler to map bytecode instructions to expressions. In this paper, we introduce our experimental results to apply our method to Java programs compiled by a standard Java compiler. We discuss the feasibility of our method with respect to our goal, which is an implementation of a feature to designate expressions instead of source code lines.
机译:大多数Java调试器在每次逐步执行时都将源代码行指定为源代码中的已执行部分。这种指定是基于编译结果的,编译结果为调试时执行的字节代码指令提供行号。由于源代码行通常包含许多表达式,因此调试器用户必须在头脑中模拟此类包含的表达式的微观执行。这种内部仿真是调试效率低下的原因之一。我们旨在支持实现一种功能,以指定表达式而不是源代码行。作为第一步,我们提出一种方法来检查给定的编译器如何将字节码指令映射到表达式。我们方法的关键思想是将每个表达式中的词汇标记分解为不同的源代码行。由于行号和通过分解获得的标记之间一一对应,我们可以揭示出编译器将字节码指令映射到表达式的隐藏意图。在本文中,我们将介绍实验结果,以将我们的方法应用于由标准Java编译器编译的Java程序。我们针对目标讨论了该方法的可行性,该目标是指定表达式而不是源代码行的功能的实现。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号