Files in this item
Space cost analysis using sized types
Item metadata
dc.contributor.advisor | Hammond, Kevin | |
dc.contributor.author | Vasconcelos, Pedro B. | |
dc.coverage.spatial | 315 | en |
dc.date.accessioned | 2008-12-01T14:05:11Z | |
dc.date.available | 2008-12-01T14:05:11Z | |
dc.date.issued | 2008-11 | |
dc.identifier | uk.bl.ethos.552180 | |
dc.identifier.uri | https://hdl.handle.net/10023/564 | |
dc.description.abstract | Programming resource-sensitive systems, such as real-time embedded systems, requires guaranteeing both the functional correctness of computations and also that time and space usage fits within constraints imposed by hardware limits or the environment. Functional programming languages have proved very good at meeting the former logical kind of guarantees but not the latter resource guarantees. This thesis contributes to demonstrate the applicability of functional programming in resource-sensitive systems with an automatic program analysis for obtaining guaranteed upper bounds on dynamic space usage of functional programs. Our analysis is developed for a core subset of Hume, a domain-specific functional language targeting resource-sensitive systems (Hammond et al. 2007), and presented as a type and effect system that builds on previous sized type systems (Hughes et al. 1996, Chin and Khoo 2001) and effect systems for costs (Dornic et al. 1992, Reistad and Giord 1994, Hughes and Pareto 1999). It extends previous approaches by using abstract interpretation techniques to automatically infer linear approximations of the sizes of recursive data types and the stack and heap costs of recursive functions. The correctness of the analysis is formally proved with respect to an operational semantics for the language and an inference algorithm that automatically reconstructs size and cost bounds is presented. A prototype implementation of the analysis and operational semantics has been constructed and used to experimentally assess the quality of the cost bounds with some examples, including implementations of textbook functional programming algorithms and simplified embedded systems. | en |
dc.format.extent | 1790405 bytes | |
dc.format.mimetype | application/pdf | |
dc.language.iso | en | en |
dc.publisher | University of St Andrews | |
dc.rights | Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported | |
dc.rights.uri | http://creativecommons.org/licenses/by-nc-sa/3.0/ | |
dc.subject | Functional programming | en |
dc.subject | Cost analysis | en |
dc.subject | Program analysis | en |
dc.subject | Type and effect systems | en |
dc.subject | Abstract interpretation | en |
dc.subject.lcc | QA76.62V2 | |
dc.subject.lcsh | Functional programming (Computer science) | en_US |
dc.subject.lcsh | System analysis | en_US |
dc.subject.lcsh | Computer programming--Costs | en_US |
dc.title | Space cost analysis using sized types | en |
dc.type | Thesis | en |
dc.type.qualificationlevel | Doctoral | en |
dc.type.qualificationname | PhD Doctor of Philosophy | en |
dc.publisher.institution | The University of St Andrews | en |
This item appears in the following Collection(s)
Except where otherwise noted within the work, this item's licence for re-use is described as Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported
Items in the St Andrews Research Repository are protected by copyright, with all rights reserved, unless otherwise indicated.