【24h】

Source Code Partitioning in Program Optimization

机译:程序优化中的源代码分区

获取原文

摘要

Program analysis and program optimization seek to improve program performance. There are optimization techniques which are applied to various scopes such as a source file, function or basic block. Inter-procedural program optimization techniques have the scope of source file and analyze the interaction and relationship between different program functions. The techniques analyze the entire translation unit (typically a source file) and optimize the whole translation unit globally instead of just optimizing inside a function. Analyzing and optimizing an entire translation unit increases compilation time drastically because many factors need to be considered during analysis and optimization. The translation unit size can be quite large, containing many functions. Another issue is that functions in different translation units can be more closely related to each other than to the functions within their translation unit. The main goal of this research is grouping or partitioning of closely related program functions into the same translation unit. Our method profiles an application, determines relationship information between program functions and groups closely related functions together. The source code partitioner method improves the processing time of inter-procedural optimization techniques by applying it to a subset of program functions. Partitioning of program functions by analyzing profiling output shows dramatic decrease in compilation time of programs. Our results show we can improve the compiling time in all tested real world benchmarks.
机译:程序分析和程序优化旨在提高程序性能。有一些优化技术可应用于各种范围,例如源文件,函数或基本块。过程间程序优化技术具有源文件的范围,并分析了不同程序功能之间的相互作用和关系。这些技术分析整个翻译单元(通常是源文件)并全局优化整个翻译单元,而不仅仅是在函数内部进行优化。分析和优化整个翻译单元会极大地增加编译时间,因为在分析和优化过程中需要考虑许多因素。翻译单元的大小可能会很大,其中包含许多功能。另一个问题是,不同翻译单元中的功能彼此之间的联系比与其翻译单元中的功能之间的联系更紧密。这项研究的主要目标是将密切相关的程序功能分组或划分到同一翻译单元中。我们的方法对应用程序进行概要分析,确定程序功能之间的关系信息,并将紧密相关的功能组合在一起。源代码分区器方法通过将其应用到程序功能的子集来缩短过程间优化技术的处理时间。通过分析配置文件输出对程序功能进行分区显示出程序编译时间的显着减少。我们的结果表明,我们可以在所有经过测试的真实基准中缩短编译时间。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号