Optimizing Worst-Case Execution Times Using Mainstream Compilers

M. Becker, S. Chakraborty
{"title":"Optimizing Worst-Case Execution Times Using Mainstream Compilers","authors":"M. Becker, S. Chakraborty","doi":"10.1145/3207719.3207739","DOIUrl":null,"url":null,"abstract":"Compiler optimizations are widely used to enhance the average case performance of software, and these techniques are very effective and advance with every compiler version. However, in realtime systems, it is the worst-case performance that matters. While there are techniques that aim at reducing the worst-case execution time (WCET), most of them are specific to certain targets and not implemented in mainstream compilers. In this paper, we present our ongoing work for a generic approach to harness the power of existing compiler optimizations for WCET reduction. Our approach is based on an existing compiler technology called Feedback-Directed Optimization (FDO), which can reduce the execution time of a program by making use of profiling data, and recently became popular due to major improvements. We first introduce a static analysis to efficiently compute a worst-case timing profile based on control flow dominators. During this analysis we perform a minimal number of automated calls to a WCET analyzer. The resulting profile contains basic block and branch execution counts, which then can be used in the regular FDO workflow. Preliminary results show that significant WCET reductions are possible, but depend on many factors that need more investigation.","PeriodicalId":284835,"journal":{"name":"Proceedings of the 21st International Workshop on Software and Compilers for Embedded Systems","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-05-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 21st International Workshop on Software and Compilers for Embedded Systems","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3207719.3207739","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

Abstract

Compiler optimizations are widely used to enhance the average case performance of software, and these techniques are very effective and advance with every compiler version. However, in realtime systems, it is the worst-case performance that matters. While there are techniques that aim at reducing the worst-case execution time (WCET), most of them are specific to certain targets and not implemented in mainstream compilers. In this paper, we present our ongoing work for a generic approach to harness the power of existing compiler optimizations for WCET reduction. Our approach is based on an existing compiler technology called Feedback-Directed Optimization (FDO), which can reduce the execution time of a program by making use of profiling data, and recently became popular due to major improvements. We first introduce a static analysis to efficiently compute a worst-case timing profile based on control flow dominators. During this analysis we perform a minimal number of automated calls to a WCET analyzer. The resulting profile contains basic block and branch execution counts, which then can be used in the regular FDO workflow. Preliminary results show that significant WCET reductions are possible, but depend on many factors that need more investigation.
使用主流编译器优化最坏情况下的执行时间
编译器优化被广泛用于提高软件的平均情况性能,这些技术在每个编译器版本中都非常有效和先进。然而,在实时系统中,最坏情况下的性能才是最重要的。虽然有一些技术旨在减少最坏情况执行时间(WCET),但大多数技术都是特定于某些目标的,并没有在主流编译器中实现。在本文中,我们介绍了我们正在进行的工作,以一种通用的方法来利用现有编译器优化的力量来减少WCET。我们的方法是基于一种叫做反馈导向优化(Feedback-Directed Optimization, FDO)的现有编译器技术,它可以通过利用分析数据来减少程序的执行时间,最近由于重大改进而变得流行起来。我们首先介绍了一种静态分析,以有效地计算基于控制流支配的最坏时序轮廓。在此分析期间,我们对WCET分析器执行最少数量的自动调用。生成的概要文件包含基本的块和分支执行计数,然后可以在常规的FDO工作流中使用。初步结果表明,显著降低WCET是可能的,但取决于许多需要进一步调查的因素。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信