In
Proceedings Seventh International Conference on Mathematics of Program Construction (MPC 2004), pp. 16-31Annotation
Seventh International Conference on Mathematics of Program Construction (MPC 2004), Stirling, Scotland, UK, July 2004
Publication type
Article in monograph or in proceedings

Display more detailsDisplay less details
Organization
Software Technology
Security of Systems
Book title
Proceedings Seventh International Conference on Mathematics of Program Construction (MPC 2004)
Page start
p. 16
Page end
p. 31
Subject
Software TechnologyAbstract
Generic functions are defined by induction on the structural
representation of types. As a consequence, by defining just a
single generic operation, one acquires this operation over any
particular type. An instance on a specific type is generated by
interpretation of the type's structure. A direct translation leads
to extremely inefficient code that involves many conversions
between types and their structural representations. In this paper
we present an optimization technique based on compile-time
symbolic evaluation. We prove that the optimization removes the
overhead of the generated code for a considerable class of generic
functions. The proof uses typing to identify intermediate data
structures that should be eliminated. In essence, the output after
optimization is similar to hand-written code.
This item appears in the following Collection(s)
- Academic publications [229196]
- Electronic publications [111662]
- Faculty of Science [34286]
- Open Access publications [80462]
Upload full text
Use your RU credentials (u/z-number and password) to log in with SURFconext to upload a file for processing by the repository team.