...
首页> 外文期刊>Journal of Functional Programming >The verified CakeML compiler backend
【24h】

The verified CakeML compiler backend

机译:经过验证的CakeML编译器后端

获取原文
   

获取外文期刊封面封底 >>

       

摘要

The CakeML compiler is, to the best of our knowledge, the most realistic verified compiler for a functional programming language to date. The architecture of the compiler, a sequence of intermediate languages through which high-level features are compiled away incrementally, enables verification of each compilation pass at an appropriate level of semantic detail. Parts of the compiler's implementation resemble mainstream (unverified) compilers for strict functional languages, and it supports several important features and optimisations. These include efficient curried multiargument functions, configurable data representations, efficient exceptions, register allocation, and more. The compiler produces machine code for five architectures: x86-64, ARMv6, ARMv8, MIPS-64, and RISC-V. The generated machine code contains the verified runtime system which includes a verified generational copying garbage collector and a verified arbitrary precision arithmetic (bignum) library. In this paper, we present the overall design of the compiler backend, including its 12 intermediate languages. We explain how the semantics and proofs fit together and provide detail on how the compiler has been bootstrapped inside the logic of a theorem prover. The entire development has been carried out within the HOL4 theorem prover.
机译:就我们所知,CakeML编译器是迄今为止最实用的经过验证的功能性编程语言编译器。编译器的体系结构是一系列中间语言,通过这些中间语言可以逐步编译高级功能,从而可以在适当的语义细节级别上验证每个编译过程。编译器的部分实现类似于使用严格功能语言的主流(未经验证)编译器,并且它支持一些重要的功能和优化。这些功能包括有效的咖喱多参数功能,可配置的数据表示,有效的异常,寄存器分配等。编译器为五种体系结构生成机器代码:x86-64,ARMv6,ARMv8,MIPS-64和RISC-V。生成的机器代码包含经过验证的运行时系统,该系统包括经过验证的世代复制垃圾回收器和经过验证的任意精度算术(bignum)库。在本文中,我们介绍了编译器后端的总体设计,包括其12种中间语言。我们将解释语义和证明如何组合在一起,并详细说明如何在定理证明者的逻辑内部引导编译器。整个开发都是在HOL4定理证明器中进行的。

著录项

  • 来源
    《Journal of Functional Programming》 |2019年第2019期|e2.1-e2.57|共57页
  • 作者单位

    Carnegie Mellon Univ Comp Sci Dept Pittsburgh PA 15213 USA;

    Chalmers Univ Technol CSE S-41296 Gothenburg Sweden;

    Univ New South Wales CSIRO CSE Data61 Kensington NSW 2033 Australia;

    Univ Cambridge Dept Comp Sci & Technol Cambridge CB3 0FD England;

    Univ Kent Sch Comp Canterbury CT2 7NF Kent England;

    Australian Natl Univ Res Sch Comp Sci CSIRO Data61 Canberra ACT 2600 Australia;

  • 收录信息 美国《科学引文索引》(SCI);
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号