skip to main content
10.1145/1289927.1289960acmconferencesArticle/Chapter ViewAbstractPublication PagesesweekConference Proceedingsconference-collections
Article

WCET estimation for executables in the presence of data caches

Published:30 September 2007Publication History

ABSTRACT

This paper describes techniques to estimate the worst case execution time of executable code on architectures with data caches. The underlying mechanism is Abstract Interpretation, which is used for the dual purposes of tracking address computations and cache behavior. A simultaneous numeric and pointer analysis using an abstraction for discrete sets of values computes safe approximations of access addresses which are then used to predict cache behavior using Must Analysis. A heuristic is also proposed which generates likely worst case estimates. It can be used in soft real time systems and also for reasoning about the tightness of the safe estimate. The analysis methods can handle programs with non-affine access patterns, for which conventional Presburger Arithmetic formulations or Cache Miss Equations do not apply. The precision of the estimates is user-controlled and can be traded off against analysis time. Executables are analyzed directly, which, apart from enhancing precision, renders the method language independent.

References

  1. ARM7TDMI. Technical Reference Manual. "http://www.arm.com/pdfs/DDI0210B_7TDMI_R4.pdf".Google ScholarGoogle Scholar
  2. Simplescalar/ARM. "http://www.simplescalar.com/v4test.html".Google ScholarGoogle Scholar
  3. WCET Project/Benchmarks. "http://www.mrtc.mdh.se/projects/wcet/benchmarks.html".Google ScholarGoogle Scholar
  4. G. Balakrishnan and T. W. Reps. Analyzing Memory Accesses in x86 Executables. In CC, pages 5--23, 2004.Google ScholarGoogle ScholarCross RefCross Ref
  5. S. Chatterjee, E. Parker, P. J. Hanlon, and A. R. Lebeck. Exact analysis of the cache behavior of nested loops. In PLDI, pages 286--297, New York, NY, USA, 2001. ACM Press. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. P. Cousot and R. Cousot. Abstract Interpretation: A Unified Lattice Model for Static Analysis of Programs by Construction or Approximation of Fixpoints. In POPL, pages 238--252, New York, NY, USA, 1977. ACM Press. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. C. Ferdinand and R. Wilhelm. On Predicting Data Cache Behavior for Real-Time Systems. In LCTES, pages 16--30, London, UK, 1998. Springer-Verlag. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. C. Ferdinand and R. Wilhelm. Fast and Efficient Cache Behavior Prediction for Real-Time Systems. Real-Time Systems, 17((2/3)), 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. S. Ghosh, M. Martonosi, and S. Malik. Cache Miss Equations: An Analytical Representation of Cache Misses. In ICS, pages 317--324, New York, NY, USA, 1997. ACM Press. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. T. Lundqvist and P. Stenström. Timing Anomalies in Dynamically Scheduled Microprocessors. In IEEE Real-Time Systems Symposium, pages 12--21, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. H. Ramaprasad and F. Mueller. Bounding Worst-Case Data Cache Behavior by Analytically Deriving Cache Reference Patterns. In RTAS, pages 148--157, Washington, DC, USA, 2005. IEEE Computer Society. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. R. Sen and Y. N. Srikant. Estimating WCET in the presence of Data Caches. Technical Report. "http://archive.csa.iisc.ernet.in/TR/2007/5".Google ScholarGoogle Scholar
  13. R. Sen and Y. N. Srikant. Executable Analysis using Abstract Interpretation with Circular Linear Progressions. In MEMOCODE, pages 39--48, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. R. T. White, C. A. Healy, D. B. Whalley, F. Mueller, and M. G. Harmon. Timing Analysis for Data Caches and Set-Associative Caches. In RTAS, page 192, Washington, DC, USA, 1997. IEEE Computer Society. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. WCET estimation for executables in the presence of data caches

                Recommendations

                Comments

                Login options

                Check if you have access through your login credentials or your institution to get full access on this article.

                Sign in
                • Published in

                  cover image ACM Conferences
                  EMSOFT '07: Proceedings of the 7th ACM & IEEE international conference on Embedded software
                  September 2007
                  304 pages
                  ISBN:9781595938251
                  DOI:10.1145/1289927

                  Copyright © 2007 ACM

                  Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

                  Publisher

                  Association for Computing Machinery

                  New York, NY, United States

                  Publication History

                  • Published: 30 September 2007

                  Permissions

                  Request permissions about this article.

                  Request Permissions

                  Check for updates

                  Qualifiers

                  • Article

                  Acceptance Rates

                  Overall Acceptance Rate60of203submissions,30%

                  Upcoming Conference

                  ESWEEK '24
                  Twentieth Embedded Systems Week
                  September 29 - October 4, 2024
                  Raleigh , NC , USA

                PDF Format

                View or Download as a PDF file.

                PDF

                eReader

                View online with eReader.

                eReader