TY - GEN
T1 - Optimizing worst-case execution times using mainstream compilers
AU - Becker, Martin
AU - Chakraborty, Samarjit
N1 - Publisher Copyright:
© 2018 Association for Computing Machinery.
PY - 2018/5/28
Y1 - 2018/5/28
N2 - 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 real-time 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.
AB - 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 real-time 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.
UR - http://www.scopus.com/inward/record.url?scp=85054131779&partnerID=8YFLogxK
U2 - 10.1145/3207719.3207739
DO - 10.1145/3207719.3207739
M3 - Conference contribution
AN - SCOPUS:85054131779
SN - 9781450357807
T3 - Proceedings of the 21st International Workshop on Software and Compilers for Embedded Systems, SCOPES 2018
SP - 10
EP - 13
BT - Proceedings of the 21st International Workshop on Software and Compilers for Embedded Systems, SCOPES 2018
A2 - Stuijk, Sander
PB - Association for Computing Machinery, Inc
T2 - 21st International Workshop on Software and Compilers for Embedded Systems, SCOPES 2018
Y2 - 28 May 2018 through 30 May 2018
ER -