Worst-Case Execution Time Based Optimization of Real-Time Java Programs

Stefan Hepp, Martin Schoeberl
2012 2012 IEEE 15th International Symposium on Object/Component/Service-Oriented Real-Time Distributed Computing  
Standard compilers optimize execution time for the average case. However, in hard real-time systems the worst-case execution time (WCET) is of primary importance. Therefore, a compiler for real-time systems shall include optimizations that aim to minimize the WCET. One effective compiler optimization is method inlining. It is especially important for languages, like Java, where small setter and getter methods are considered good programming style. In this paper we present and explore WCET
more » ... inlining of Java methods. We use the WCET analysis tool for the Java processor JOP to guide to optimization along the worst-case path. The tool JCopter is integrated with the WCET analysis tool and is used to explore different inlining strategies. On real-time benchmarks the optimization results in a reduction of the WCET by a few percent up to a factor of about 2.
doi:10.1109/isorc.2012.17 dblp:conf/isorc/HeppS12 fatcat:5x2xa7fsyfcutoa5v3inntfwke