Publications on WCET-Aware Compilation
[176974] |
Title: Tighter WCET Estimates by Procedure Cloning. <em>In Proceedings of the 7th International Workshop on Worst-Case Execution Time Analysis (WCET)</em> |
Written by: Paul Lokuciejewski, Heiko Falk, Martin Schwarzer and Peter Marwedel |
in: July (2007). |
Volume: Number: |
on pages: 27-32 |
Chapter: |
Editor: |
Publisher: |
Series: 20070703-wcet-lokuciejewski-falk.pdf |
Address: Pisa / Italy |
Edition: |
ISBN: |
how published: 07-70 LFSM07 WCET |
Organization: |
School: |
Institution: |
Type: |
DOI: |
URL: |
ARXIVID: |
PMID: |
Note: hfalk, ESD, WCC
Abstract: Embedded software spends most of its execution time in loops. To allow a precise static WCET analysis, each loop iteration should, in theory, be represented by an individual calling context. However, due to the enormous analysis times of real-world applications, this approach is not feasible and requires a reduction of the analysis complexity by limiting the number of considered contexts. This restricted timing analysis results in imprecise WCET estimates. In particular, data-dependent loops with iteration counts depending on function parameters cannot be precisely analyzed. In order to reduce the number of contexts that must be implicitly considered, causing an increase in analysis time, we apply the standard compiler optimization procedure cloning which improves the program's predictability by making loops explicit and thus allowing a precise annotation of loop bounds. The result is a tight WCET estimation within a reduced analysis time. Our results indicate that reductions of the WCET between 12% and 95% were achieved for real-world benchmarks. In contrast, the reduction of the simulated program execution time remained marginal with only 3%. As will be also shown, this optimization only produces a small overhead for the WCET analysis.