首页> 外文OA文献 >From type checking by recursive descent to type checking with an abstract machine
【2h】

From type checking by recursive descent to type checking with an abstract machine

机译:从递归下降的类型检查到抽象机的类型检查

摘要

Modern type systems for programming languages usually incorporate additional information useful for program analysis, e.g., effects, control flow, non-interference, strictness etc. When designing a typing predicate for such systems, a form of logical derivation rules is normally taken. Despite the expressivity of this approach, the straightforward implementation of an appropriate type checker is usually inefficient in terms of stack consumption and further optimisations. This leads to a significant gap between an analysis and program implementing the analysis.In this paper we demonstrate an application of techniques investigated by Danvy et al. to derive an abstract machine for typing from the traditional recursive descent approach. All used techniques are off-the-shelf and no appropriate correspondence theorems between an initial type system and the derived abstract machine needs to be proven: they are instead corollaries of the correctness of inter-derivation and of the initial specification. Whereas a recursive descent is something straightforward to implement based on declarative typing rules, the derived abstract machine exposes behaviour similar to Landin's SECD machine and gives a solid basis for further optimizations using abstract interpretation.
机译:用于编程语言的现代类型系统通常包含对程序分析有用的附加信息,例如,效果,控制流,无干扰,严格等。在为此类系统设计类型谓词时,通常采用一种逻辑推导规则。尽管这种方法具有表达性,但是就堆栈消耗和进一步优化而言,适当类型检查器的直接实现通常效率低下。这导致了分析与执行分析的程序之间的巨大差距。在本文中,我们演示了Danvy等人研究的技术的应用。从传统的递归下降方法派生抽象打字机。所有使用的技术都是现成的,初始类型系统与派生的抽象机器之间没有适当的对应定理需要证明:相反,它们是推导正确性和初始规范的推论。递归下降是基于声明性输入规则而易于实现的东西,而派生的抽象机则公开了类似于Landin SECD机的行为,并为使用抽象解释进行进一步优化提供了坚实的基础。

著录项

  • 作者

    Sergey Ilya; Clarke Dave;

  • 作者单位
  • 年度 2011
  • 总页数
  • 原文格式 PDF
  • 正文语种 en
  • 中图分类

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号