首页> 外文期刊>Higher-order and symbolic computation >Optimizing Nested Loops Using Local CPS Conversion
【24h】

Optimizing Nested Loops Using Local CPS Conversion

机译:使用本地CPS转换优化嵌套循环

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

摘要

Local CPS conversion is a compiler transformation for improving the code generated for nested loops by a direct-style compiler that uses recursive functions to represent loops. The transformation selectively applies CPS conversion at non-tail call sites, which allows the compiler to use a single machine procedure and stack frame for both the caller and callee. In this paper, we describe LCPS conversion, as well as a supporting analysis. We have implemented Local CPS conversion in the MOBY compiler and describe our implementation. In addition to improving the performance of loops, Local CPS conversion is also used to aid the optimization of non-local control flow by the MOBY compiler. We present results from preliminary experiments with our compiler that show significant reductions in loop overhead as a result of Local CPS conversion.
机译:本地CPS转换是一种编译器转换,用于改进使用递归函数表示循环的直接样式编译器为嵌套循环生成的代码。转换有选择地在非尾调用点应用CPS转换,这使编译器可以对调用方和被调用方使用单个机器过程和堆栈帧。在本文中,我们描述了LCPS转换以及支持性分析。我们已经在MOBY编译器中实现了本地CPS转换并描述了我们的实现。除了提高循环性能之外,MOBY编译器还使用本地CPS转换来帮助优化非本地控制流。我们提供了使用我们的编译器进行的初步实验的结果,这些结果表明,由于进行了本地CPS转换,循环开销显着降低。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号