Optimizing worst-case execution times using mainstream compilers

Martin Becker, Samarjit Chakraborty

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

3 Scopus citations

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 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.

Original languageEnglish
Title of host publicationProceedings of the 21st International Workshop on Software and Compilers for Embedded Systems, SCOPES 2018
EditorsSander Stuijk
PublisherAssociation for Computing Machinery, Inc
Pages10-13
Number of pages4
ISBN (Print)9781450357807
DOIs
StatePublished - 28 May 2018
Event21st International Workshop on Software and Compilers for Embedded Systems, SCOPES 2018 - St. Goar, Germany
Duration: 28 May 201830 May 2018

Publication series

NameProceedings of the 21st International Workshop on Software and Compilers for Embedded Systems, SCOPES 2018

Conference

Conference21st International Workshop on Software and Compilers for Embedded Systems, SCOPES 2018
Country/TerritoryGermany
CitySt. Goar
Period28/05/1830/05/18

Fingerprint

Dive into the research topics of 'Optimizing worst-case execution times using mainstream compilers'. Together they form a unique fingerprint.

Cite this