Publications of Heiko Falk

[176930]
Title: WCET-driven Branch Prediction aware Code Positioning. <em>In Proceedings of the International Conference on Compilers, Architectures and Synthesis for Embedded Systems (CASES)</em>
Written by: Sascha Plazar, Jan C. Kleinsorge, Heiko Falk and Peter Marwedel
in: October (2011).
Volume: Number:
on pages: 165-174
Chapter:
Editor:
Publisher:
Series: 20111011-cases-plazar.pdf
Address: Taipei / Taiwan
Edition:
ISBN: 10.1145/2038698.2038724
how published: 11-35 PKFM11 CASES
Organization:
School:
Institution:
Type:
DOI:
URL:
ARXIVID:
PMID:

Note: hfalk, ESD, WCC

Abstract: In the past decades, embedded system designers moved from simple, predictable system designs towards complex systems equipped with caches, branch prediction units and speculative execution. This step was necessary in order to fulfill increasing requirements on computational power. Static analysis techniques considering such speculative units had to be developed to allow the estimation of an upper bound of the execution time of a program. This bound is called worst-case execution time (WCET). Its knowledge is crucial to verify whether hard real-time systems satisfy their timing constraints, and the WCET is a key parameter for the design of embedded systems.<br /> In this paper, we propose a WCET-driven branch prediction aware optimization which reorders basic blocks of a function in order to reduce the amount of jump instructions and mispredicted branches. We employed a genetic algorithm which rearranges basic blocks in order to decrease the WCET of a program. This enables a first estimation of the possible optimization potential at the cost of high optimization runtimes. To avoid time consuming repetitive WCET analyses, we developed a new algorithm employing integer-linear programming (ILP). The ILP models the worst-case execution path (WCEP) of a program and takes branch prediction effects into account. This algorithm enables short optimization runtimes at slightly decreased optimization results. In a case study, the genetic algorithm is able to reduce the benchmarks' WCET by up to 24.7% whereas our ILP-based approach is able to decrease the WCET by up to 20.0%.