Skip to main navigation Skip to search Skip to main content

Parametric heap usage analysis for functional programs

  • Stony Brook University

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

12 Scopus citations

Abstract

This paper presents an analysis that derives a formula describing the worst-case live heap space usage of programs in a functional language with automated memory management (garbage collection). First, the given program is automatically transformed into bound functions that describe upper bounds on the live heap space usage and other related space metrics in terms of the sizes of function arguments. The bound functions are simplified and rewritten to obtain recurrences, which are then solved to obtain the desired formulas characterizing the worst-case space usage. These recurrences may be difficult to solve due to uses of the maximum operator. We give methods to automatically solve categories of such recurrences. Our analysis determines and exploits monotonicity and monotonicity-like properties of bound functions to derive upper bounds on heap usage, without considering behaviors of the program that cannot lead to maximal space usage.

Original languageEnglish
Title of host publicationISMM'09 - Proceedings of the 2009 ACM SIGPLAN International Symposium on Memory Management
Pages139-148
Number of pages10
DOIs
StatePublished - 2009
Event2009 ACM SIGPLAN International Symposium on Memory Management, ISMM'09 - Dublin, Ireland
Duration: Jun 19 2009Jun 20 2009

Publication series

NameInternational Symposium on Memory Management, ISMM

Conference

Conference2009 ACM SIGPLAN International Symposium on Memory Management, ISMM'09
Country/TerritoryIreland
CityDublin
Period06/19/0906/20/09

Keywords

  • Functional Languages
  • Garbage Collection
  • Live Heap Space Analysis
  • Recurrence Relations

Fingerprint

Dive into the research topics of 'Parametric heap usage analysis for functional programs'. Together they form a unique fingerprint.

Cite this