Abstract
The growing complexity of modern computer architectures increasingly complicates the prediction of the run-time behavior of software. For real-time systems, where a safe estimation of the program's worst-case execution time is needed, time-predictable computer architectures promise to resolve this problem. A stack cache, for instance, allows the compiler to efficiently cache a program's stack, while static analysis of its behavior remains easy. Likewise, its implementation requires little hardware overhead.
This work introduces an optimization of the standard stack cache to avoid redundant spilling of the cache content to main memory, if the content was not modified in the meantime. At first sight, this appears to be an average-case optimization. Indeed, measurements show that the number of cache blocks spilled is reduced to about 17% and 30% in the mean, depending on the stack cache size. Furthermore, we show that lazy spilling can be analyzed with little extra effort, which benefits the worst-case spilling behavior that is relevant for a real-time system.
This work introduces an optimization of the standard stack cache to avoid redundant spilling of the cache content to main memory, if the content was not modified in the meantime. At first sight, this appears to be an average-case optimization. Indeed, measurements show that the number of cache blocks spilled is reduced to about 17% and 30% in the mean, depending on the stack cache size. Furthermore, we show that lazy spilling can be analyzed with little extra effort, which benefits the worst-case spilling behavior that is relevant for a real-time system.
Original language | English |
---|---|
Title of host publication | Proceedings of 14th International Workshop on Worst-Case Execution Time Analysis : WCET 2014 |
Editors | Heiko Falk |
Number of pages | 10 |
Publisher | OASICS |
Publication date | 2014 |
Pages | 83-92 |
ISBN (Electronic) | 978-3-939897-69-9 |
Publication status | Published - 2014 |
Event | 14th International Workshop on Worst-Case Execution Time Analysis - Madrid, Spain Duration: 18 Jul 2014 → 18 Jul 2014 Conference number: 14 http://www.uni-ulm.de/en/in/wcet2014.html |
Conference
Conference | 14th International Workshop on Worst-Case Execution Time Analysis |
---|---|
Number | 14 |
Country/Territory | Spain |
City | Madrid |
Period | 18/07/2014 → 18/07/2014 |
Internet address |
Series | Open Access Series in Informatics |
---|---|
Volume | 39 |
ISSN | 2190-6807 |