The formal relationship between direct and continuation-passing style optimizing compilers: A synthesis of two paradigms
dc.contributor.advisor | Felleisen, Matthias | en_US |
dc.creator | Sabry, Amr Afaf | en_US |
dc.date.accessioned | 2009-06-04T00:08:22Z | en_US |
dc.date.available | 2009-06-04T00:08:22Z | en_US |
dc.date.issued | 1995 | en_US |
dc.description.abstract | Compilers for higher-order programming languages like Scheme, ML, and Lisp can be broadly characterized as either "direct compilers" or "continuation-passing style (CPS) compilers", depending on their main intermediate representation. Our central result is a precise correspondence between the two compilation strategies. Starting from the theoretical foundations of direct and CPS compilers, we develop relationships between the main components of each compilation strategy: generation of the intermediate representation, simplification of the intermediate representation, code generation, and data flow analysis. For each component, our results pinpoint the superior compilation strategy, the reason for which it dominates the other strategy, and ways to improve the inferior strategy. Furthermore, our work suggests a synthesis of the direct and CPS compilation strategies that combines the best aspects of each. The contributions of this thesis include a comprehensive analysis of the properties of the CPS intermediate representation, a new optimal CPS transformation and its inverse, a new intermediate representation for direct compilers, an equivalence between the canonical equational theories for reasoning about continuations and general computational effects, a sound and complete equational axiomatization of the semantics of call-by-value control operators, a methodology for deriving equational logics for imperative languages, and formal relationships between code generators and data flow analyzers for direct and CPS compilers. These contributions unify concepts in two distinct compilation strategies, and can be used to compare specific compilers. | en_US |
dc.format.extent | 157 p. | en_US |
dc.format.mimetype | application/pdf | en_US |
dc.identifier.callno | THESIS COMP.SCI. 1995 SABRY | en_US |
dc.identifier.citation | Sabry, Amr Afaf. "The formal relationship between direct and continuation-passing style optimizing compilers: A synthesis of two paradigms." (1995) Diss., Rice University. <a href="https://hdl.handle.net/1911/16878">https://hdl.handle.net/1911/16878</a>. | en_US |
dc.identifier.uri | https://hdl.handle.net/1911/16878 | en_US |
dc.language.iso | eng | en_US |
dc.rights | Copyright is held by the author, unless otherwise indicated. Permission to reuse, publish, or reproduce the work beyond the bounds of fair use or other exemptions to copyright law must be obtained from the copyright holder. | en_US |
dc.subject | Computer science | en_US |
dc.title | The formal relationship between direct and continuation-passing style optimizing compilers: A synthesis of two paradigms | en_US |
dc.type | Thesis | en_US |
dc.type.material | Text | en_US |
thesis.degree.department | Computer Science | en_US |
thesis.degree.discipline | Engineering | en_US |
thesis.degree.grantor | Rice University | en_US |
thesis.degree.level | Doctoral | en_US |
thesis.degree.name | Doctor of Philosophy | en_US |
Files
Original bundle
1 - 1 of 1