自动调优GCC编译器以优化嵌入式系统上运行的应用程序的性能
Automatically Tuning the GCC Compiler to Optimize the Performance of Applications Running on Embedded Systems
摘要:
本文介绍了一种新的方法,自动调整选择的编译器标志,以优化性能的软件打算运行在嵌入式硬件平台上。我们首先开发我们的方法编译的GNU C语言(GCC)的ARM Cortex-M3(CM 3)处理器的代码,我们展示了我们的方法如何优于行业标准-O3优化水平在不同的嵌入式基准套件。首先,我们量化的潜在收益,使用现有的迭代编译方法,时间密集型搜索每个基准的最佳配置。然后,我们调整迭代编译以输出单个配置,从而优化整个基准测试套件的性能。虽然这是一个耗时的过程,我们的方法构建了一个优化的变化-O3,我们称之为-OCM 3,实现了近三分之二的已知可用增益的CM 3和显着优于一个更复杂的国家的最先进的预测方法在交叉验证实验。最后,我们通过构建另外两个优化级别来在其他平台上演示我们的方法,这些优化级别在ARM Cortex-A8和8位AVR处理器上发现了更显著的加速。
英文摘要:
This paper introduces a novel method for automatically tuning the selection of compiler flags to optimize the performance of software intended to run on embedded hardware platforms. We begin by developing our approach on code compiled by the GNU C Compiler (GCC) for the ARM Cortex-M3 (CM3) processor; and we show how our method outperforms the industry standard -O3 optimization level across a diverse embedded benchmark suite. First we quantify the potential gains by using existing iterative compilation approaches that time-intensively search for optimal configurations for each benchmark. Then we adapt iterative compilation to output a single configuration that optimizes performance across the entire benchmark suite. Although this is a time-consuming process, our approach constructs an optimized variation of -O3, which we call -Ocm3, that realizes nearly two thirds of known available gains on the CM3 and significantly outperforms a more complex state-of-the-art predictive method in cross-validation experiments. Finally, we demonstrate our method on additional platforms by constructing two more optimization levels that find even more significant speed-ups on the ARM Cortex-A8 and 8-bit AVR processors.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。