首页> 外文会议>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.
机译:对于特定领域的语言,“脚本语言”,动态语言以及对于基于虚拟机的语言,最直接的实现策略是编写解释器。一个简单的解释器由一个循环组成,该循环获取下一个字节码,将其分派到处理该字节码的例程,然后循环。有许多方法可以改进这种简单的机制,但是只要程序的执行是由程序的表示驱动的,而不是作为本机指令的流来驱动,则将有一些“解释性开销”。从编程语言实现中消除解释性开销的方法的历史。在实践中,经常发生的事情是,一旦一种解释性语言变得流行,就会产生提高性能的压力,直到最终承担一个实施该语言的本机 Just In Time (JIT)编译器的项目。实施JIT通常是一项艰巨的工作,会影响现有语言实现的很大一部分,并会为整个代码库增加大量代码和复杂性。在本文中,我们提出了一种创新的方法,该方法可以动态地删除大部分已解释的方法。语言实现的开销,并且对原始解释器的检测最少。虽然它不能改善手工制作的本机编译器的性能,但我们的系统在语言实现方面提供了一个有吸引力的观点。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号