Cost Relation Systems: A Language-Independent Target Language for Cost Analysis

Autor: Elvira Albert, Puri Arenas, Samir Genaim, Germán Puebla
Rok vydání: 2009
Předmět:
Zdroj: Electronic Notes in Theoretical Computer Science. 248:31-46
ISSN: 1571-0661
DOI: 10.1016/j.entcs.2009.07.057
Popis: Cost analysis aims at obtaining information about the execution cost of programs. This paper studies cost relation systems (CRSs): the sets of recursive equations used in cost analysis in order to capture the execution cost of programs in terms of the size of their input arguments. We investigate the notion of CRS from a general perspective which is independent of the particular cost analysis framework. Our main contributions are: we provide a formal definition of execution cost and of CRS which is not tied to a particular programming language; we present the notion of sound CRS, i.e., which correctly approximates the cost of the corresponding program; we identify the differences with recurrence relation systems, its possible applications and the new challenges that they bring about. Our general framework is illustrated by instantiating it to cost analysis of Java bytecode, Haskell, and Prolog.
Databáze: OpenAIRE