Static prediction of heap space usage for first-order functional programs
Authors:
Open Access
- 15 January 2003
- conference paper
- Published by Association for Computing Machinery (ACM)
- Vol. 38 (1) , 185-197
Abstract
We show how to efficiently obtain linear a priori bounds on the heap space consumption of first-order functional programs.The analysis takes space reuse by explicit deallocation into account and also furnishes an upper bound on the heap usage in the presence of garbage collection. It covers a wide variety of examples including, for instance, the familiar sorting algorithms for lists, including quicksort.The analysis relies on a type system with resource annotations. Linear programming (LP) is used to automatically infer derivations in this enriched type system.We also show that integral solutions to the linear programs derived correspond to programs that can be evaluated without any operating system support for memory management. The particular integer linear programs arising in this way are shown to be feasibly solvable under mild assumptions.Keywords
This publication has 10 references indexed in Scilit:
- Automatic time-bound analysis for a higher-order language2002
- The strength of non-size increasing computation2002
- Automatic Accurate Live Memory Analysis for Garbage-Collected Languages2001
- Resource bound certification2000
- Recursion and dynamic data-structures in bounded space1999
- Quasi-linear types1999
- Region-Based Memory ManagementInformation and Computation, 1997
- Proof-carrying code1997
- Lambda-Upsilon-Omega: An assistant algorithms analyzer1989
- Definitional interpreters for higher-order programming languages1972