Lazy spilling for a time-predictable stack cache: Implementation and analysis

Sahar Abbaspour, Alexander Jordan, Florian Brandner

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

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.

Original languageEnglish
Title of host publication14th International Workshop on Worst-Case Execution Time Analysis, WCET 2014
PublisherSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
Pages83-92
Number of pages10
ISBN (Print)9783939897699
DOIs
Publication statusPublished - 1 Jan 2014
Externally publishedYes
Event14th International Workshop on Worst-Case Execution Time Analysis, WCET 2014 - Madrid, Spain
Duration: 18 Jul 201418 Jul 2014

Publication series

NameOpenAccess Series in Informatics
Volume39
ISSN (Print)2190-6807

Conference

Conference14th International Workshop on Worst-Case Execution Time Analysis, WCET 2014
Country/TerritorySpain
CityMadrid
Period18/07/1418/07/14

Keywords

  • Lazy spilling
  • Program analysis
  • Real-time systems
  • Stack cache

Fingerprint

Dive into the research topics of 'Lazy spilling for a time-predictable stack cache: Implementation and analysis'. Together they form a unique fingerprint.

Cite this