【24h】

Contification Using Dominators

机译:使用支配符的条件

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

摘要

Contification is a compiler optimization that turns a function that always returns to the same place into a continuation. Compilers for functional languages use Contification to expose the control-flow information that is required by many optimizations, including traditional loop optimizations. This paper gives a formal presentation of Contification in MLton. a whole-program optimizing Standard ML compiler. We present two existing algorithms for Contification in our framework, as well as a new algorithm based on the domina-tor tree of a program's call graph. We prove that the dom-inator algorithm is optimal. We present benchmark results on realistic SML programs demonstrating that Contification has minimal overhead on compile time and significantly improves run time.
机译:Contification是一种编译器优化,它将始终返回同一位置的函数转换为延续。功能语言的编译器使用Contification公开许多优化(包括传统的循环优化)所需的控制流信息。本文对MLton中的内容进行了正式介绍。整个程序的优化标准ML编译器。我们在我们的框架中提出了两种现有的Contification算法,以及一种基于程序调用图的domina-tor树的新算法。我们证明了dom-inator算法是最优的。我们在现实的SML程序上提供了基准测试结果,表明Contification在编译时的开销很小,并显着改善了运行时间。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号