首页> 外文会议>Workshop on Interpreters, virtual machines and emulators >Dynamic native optimization of interpreters
【24h】

Dynamic native optimization of interpreters

机译:动态原生优化口译员

获取原文
获取外文期刊封面目录资料

摘要

For domain specific languages, "scripting languages", dynamic languages, and for virtual machine-based languages, the most straightforward implementation strategy is to write an interpreter. A simple interpreter consists of a loop that fetches the next bytecode, dispatches to the routine handling that bytecode, then loops. There are many ways to improve upon this simple mechanism, but as long as the execution of the program is driven by a representation of the program other than as a stream of native instructions, there will be some "interpretive overhead".There is a long history of approaches to removing interpretive overhead from programming language implementations. In practice, what often happens is that, once an interpreted language becomes popular, pressure builds to improve performance until eventually a project is undertaken to implement a native Just In Time (JIT) compiler for the language. Implementing a JIT is usually a large effort, affects a significant part of the existing language implementation, and adds a significant amount of code and complexity to the overall code base.In this paper, we present an innovative approach that dynamically removes much of the interpreted overhead from language implementations, with minimal instrumentation of the original interpreter. While it does not give the performance improvements of hand-crafted native compilers, our system provides an appealing point on the language implementation spectrum.
机译:对于特定域的语言,“脚本语言”,动态语言和基于虚拟机的语言,最简单的实现策略是编写解释器。一个简单的解释器由一个循环组成,该循环取自下一个字节码,调度到字节码的例程处理,然后循环。在这种简单的机制上有很多方法可以改善,但只要通过作为母语指令的流的程序的代表来驱动程序的执行,就会有一些“解释性开销”。很长从编程语言实现中去除解释开销的方法历史。在实践中,经常发生的是,一旦解释的语言变得流行,压力建立以提高性能,直到最终进行一个项目,以实现当地(JIT)编译器的语言。实现JIT通常是大量的努力,影响现有语言实现的重要部分,并为整个代码基础增加了大量的代码和复杂性。本文提出了一种创新的方法,动态地移除了大部分解释的方法从语言实现的开销,最小的原始解释器仪器。虽然它没有提供手工制作的本机编译器的性能改进,但我们的系统提供了语言实现频谱的吸引力点。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号