首页> 外文OA文献 >Partial Evaluation for Code Generation from Domain-Specific Languages
【2h】

Partial Evaluation for Code Generation from Domain-Specific Languages

机译:从领域特定语言生成代码的部分评估

摘要

Partial evaluation has been applied to compiler optimization and generation for decades. Most of the successful partial evaluators have been designed for general-purpose languages. Our observation is that domain-specific languages are also suitable targets for partial evaluation. The unusual computational models in many DSLs bring challenges as well as optimization opportunities to the compiler. To enable aggressive optimization, partial evaluation has to be specialized to fit the specific paradigm of a DSL. In this dissertation, we present three such specialized partial evaluation techniques designed for specific languages that address a variety of compilation concerns. The first algorithm provides a low-cost solution for simulating concurrency on a single-threaded processor. The second enables a compiler to compile modest-sized synchronous programs in pieces that involve communication cycles. The third statically elaborates recursive function calls that enable programmers to dynamically create a system's concurrent components in a convenient and algorithmic way. Our goal is to demonstrate the potential of partial evaluation to solve challenging issues in code generation for domain-specific languages. Naturally, we do not cover all DSL compilation issues. We hope our work will enlighten and encourage future research on the application of partial evaluation to this area.
机译:数十年来,部分评估已应用于编译器优化和生成。大多数成功的局部评估器都是针对通用语言而设计的。我们的观察结果是,特定领域的语言也是进行部分评估的合适目标。许多DSL中异常的计算模型给编译器带来了挑战和优化机会。为了实现积极的优化,必须专门评估部分评估以适合DSL的特定范例。在本文中,我们提出了三种针对特定语言设计的专门的局部评估技术,以解决各种编译问题。第一种算法提供了一种用于在单线程处理器上模拟并发的低成本解决方案。第二个功能使编译器可以分块地编译大小适中的同步程序,这些程序涉及通信周期。第三个静态详细阐述了递归函数调用,这些调用使程序员能够以方便的算法方式动态创建系统的并发组件。我们的目标是证明部分评估的潜力,以解决领域特定语言的代码生成中的难题。自然,我们不会涵盖所有DSL编译问题。我们希望我们的工作能启发和鼓励将来在部分评估应用于该领域的研究。

著录项

  • 作者

    Zeng Jia;

  • 作者单位
  • 年度 2007
  • 总页数
  • 原文格式 PDF
  • 正文语种 {"code":"en","name":"English","id":9}
  • 中图分类

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号