【24h】

Hybrid Partial Evaluation

机译:混合局部评估

获取原文
获取原文并翻译 | 示例

摘要

Hybrid partial evaluation (HPE) is a pragmatic approach to partial evaluation that borrows ideas from both online and offline partial evaluation. HPE performs offline-style specialization using an online approach without static binding time analysis. The goal of HPE is to provide a practical and predictable level of optimization for programmers, with an implementation strategy that fits well within existing compilers or interpreters. HPE requires the programmer to specify where partial evaluation should be applied. It provides no termination guarantee and reports errors in situations that violate simple binding time rules, or have incorrect use of side effects in compile-time code. We formalize HPE for a small imperative object-oriented language and describe Civet, a straightforward implementation of HPE as a relatively simple extension of a Java compiler. Code optimized by Civet performs as well as the output of a state-of-the-art offline partial evaluator.
机译:混合部分评估(HPE)是一种实用的部分评估方法,它借鉴了在线和离线部分评估的想法。 HPE使用在线方法执行离线样式的专业化,而无需进行静态绑定时间分析。 HPE的目标是为程序员提供一种实用且可预测的优化级别,其实施策略非常适合现有的编译器或解释器。 HPE要求程序员指定应在何处进行部分评估。它不提供终止保证,并且在违反简单绑定时间规则或在编译时代码中错误使用副作用的情况下报告错误。我们将HPE形式化为一种小的命令式面向对象语言,并将Civet(HPE的直接实现)描述为Java编译器的相对简单的扩展。 Civet优化的代码的性能与最新的离线部分评估器的输出一样好。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号