当前位置: X-MOL 学术CSI Trans. ICT › 论文详情
Our official English website, www.x-mol.net, welcomes your feedback! (Note: you will need to create a separate account there.)
An analysis of executable size reduction by LLVM passes
CSI Transactions on ICT Pub Date : 2019-06-03 , DOI: 10.1007/s40012-019-00248-5
Shalini Jain , Utpal Bora , Prateek Kumar , Vaibhav B. Sinha , Suresh Purini , Ramakrishna Upadrasta

The formidable increase in the number of smaller and smarter embedded devices has compelled programmers to develop more and more specialized application programs for these systems. These resource intensive programs that have to be executed on limited memory systems make a strong case for compiler optimizations that reduce the executable size of programs. Standard compilers (like LLVM) offer an out-of-the-box -Oz optimization option—just a series of compiler optimization passes—that is specifically targeted for the reduction of the generated executable size. In this paper, we aim to analyze the effects of optimizations of LLVM compiler on the reduction of executable size. Specifically, we take the size of the executable as a metric and attempt to divide the -Oz series into logical groups and study their individual effects; while also study the effect of their combinations. Our preliminary study over SPEC CPU 2017 benchmarks gives us an insight into the comparative effect of the groups of passes on the executable size. Our work has potential to enable the user to tailor a custom series of passes so as to obtain the desired executable size.

中文翻译:

LLVM通过减少可执行文件大小的分析

越来越小,越来越智能的嵌入式设备的数量的巨大增长迫使程序员不得不为这些系统开发越来越专业的应用程序。这些必须在有限的内存系统上执行的资源密集型程序为减少程序可执行文件大小的编译器优化提供了强有力的支持。标准编译器(如LLVM)提供了开箱即用的-Oz优化选项(仅一系列编译器优化遍历),专门用于减小生成的可执行文件大小。在本文中,我们旨在分析LLVM编译器优化对减小可执行文件大小的影响。具体来说,我们将可执行文件的大小作为指标,并尝试将-Oz分成逻辑小组并研究其个体影响;同时还研究了它们组合的效果。通过对SPEC CPU 2017基准的初步研究,我们可以深入了解通行证对可执行文件大小的比较影响。我们的工作有潜力使用户能够定制一系列定制通行证,从而获得所需的可执行文件大小。
更新日期:2019-06-03
down
wechat
bug