首页> 外国专利> Scalable cross-file inlining through locality-based transformation ordering

Scalable cross-file inlining through locality-based transformation ordering

机译:通过基于位置的转换顺序可扩展的跨文件内联

摘要

One embodiment disclosed relates to a method of compiling a computer program from a plurality of files of source code. An inline analysis determines which call sites in the plurality of files to make inline. An inline transformation performs the inlining within currently opened files. The transformer dynamically determines the order of inlines independent of the analyzer by taking into account the disk input-output pressure during compilation. The resulting inline order minimizes the input and output of files from and to disk respectively by considering the inline affinity between files and maintains the best run-time performance by preserving the dependences between call sites. During the inline transformation, a determination of which files to open and close is made in dependence on an affinity weighting between the files. The affinity and the dependence relationships are continuously updated in order to generate the best transformation ordering among call sites that ensures compile-time scalability and improved run-time performance.
机译:所公开的一个实施例涉及一种从多个源代码文件编译计算机程序的方法。内联分析确定要在多个文件中的哪些呼叫站点进行内联。内联转换在当前打开的文件中执行内联。通过在编译过程中考虑磁盘的输入输出压力,变压器可以动态地确定与分析仪无关的管线顺序。通过考虑文件之间的内联亲和性,所生成的内联顺序分别最大程度地减少了文件从磁盘到磁盘的输入和输出,并通过保留调用站点之间的依赖性来保持最佳的运行时性能。在内联转换期间,根据文件之间的相似性权重来确定要打开和关闭哪些文件。亲和力和依赖关系会不断更新,以便在调用站点之间生成最佳的转换顺序,从而确保编译时可伸缩性和改进的运行时性能。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号