The CPS/ANF Saga
نویسنده
چکیده
The CPS transformation dates back to the early 1970’s, where it arose as a technique to represent the control flow of programs in λ-calculus based programming languages as λ-terms in the full (free β) λ-calculus. Toward the end of that decade and afterward, compiler writers found that terms in continuation passing style represented a good intermediate language between their corresponding direct-style (pre-CPS) terms and machine code. Subsequent study of the transformation’s theoretical and pragmatic properties led to various refinements on the core algorithm, as well as several “inverse” transformations to produce direct-style terms from CPS terms. These developments led to the investigation of the “essence” of the CPS transform: a set of reduction axioms on source terms, A. Terms in A-Normal Form correspond formally to CPS terms, enabling compiler writers to use optimizations and code generators written for CPS terms on source terms without first having to do a CPS transform. 1 Reasoning about programs in continuation passing style A. Sabry and M. Felleisen. Reasoning about programs in continuation-passing style. Lisp and Symbolic Computation, 6(3):289–360, 1993 Paraphrasing the introduction, the paper gives an answer to the question: Is there a set of axioms A which may be added to the β-value rule such that two λ-terms, when CPS’d, are full-β-equal if and only if they were equal in the extended calculus. Solving this problem (and indeed, using CPS in a compiler at all) is complicated by redexes generated during the CPS transformation which do not correspond to any in the source terms (administrative redexes). A two-pass CPS translation which also reduces administrative redexes is given. This is then shown to be equivalent to a one-pass compactifying transformation, which is used alongside an “unCPS” transformation. The “inverse” unCPS takes CPS’d terms to canonical representations of equivalence classes of source terms. The equivalence relation unCPS induces on terms is shown to be generated by a finite set of rules (including βv), and these are used as the axioms A.
منابع مشابه
Estimation of Polychlorinated Biphenyls Intake through Fish Oil-Derived Dietary Supplements and Prescription Drugs in the Japanese Population
Background: Oily fish and their extracted oils may be a source of polychlorinated biphenyls (PCBs) which can induce toxic effects on the consumers. The main aim of this survey was estimation of PCBs intake through fish oil-derived dietary supplements and prescription drugs in the Japanese population. Methods: PCBs levels were determined in 20 fish oil-derived dietary supplements and 6 oil-deri...
متن کاملSaga of Discrimination of Girl Child in India
Girls in India face discrimination from cradle to grave in different forms and in different arenas of life. However, it is long survival of women compare to men (due to menopause older women free from risk of bearing children in later life and live longer (Cromie, 1998), which makes them 48% of population (Census, 2011). At every step, she is in patriarchal shackles with no opportunity to escap...
متن کاملCirculating /3-Atrial Natriuretic Factor in Congestive Heart Failure in Humans
Background. P-Atrial natriuretic factor ((-ANF) is an antiparallel dimer of et-ANF (a-ANF) with diminished cyclic GMP generation in vitro. To date, the presence of f3-ANF in the circulation of humans with severe congestive heart failure (CHF) remains controversial. The current study was designed to determine the presence and magnitude of circulating #-ANF in severe CHF, to correlate plasma #-AN...
متن کاملCirculating beta-atrial natriuretic factor in congestive heart failure in humans.
BACKGROUND beta-Atrial natriuretic factor (beta-ANF) is an antiparallel dimer of alpha-ANF (alpha-ANF) with diminished cyclic GMP generation in vitro. To date, the presence of beta-ANF in the circulation of humans with severe congestive heart failure (CHF) remains controversial. The current study was designed to determine the presence and magnitude of circulating beta-ANF in severe CHF, to corr...
متن کاملAtrial natriuretic factor receptor subtypes in the rat central nervous system.
In this study we investigated the presence and anatomical location of atrial natriuretic factor (ANF) receptor subtypes in the rat central nervous system using in vitro autoradiographic and cross-linking techniques. 125I-ANF-(Ser99-Tyr126) served as a labeled ligand, whereas ANF-(Ser99-Tyr126) and two peptides endowed with selectivity for ANF-C receptor--namely, C-ANF (des-[Gln116-Gly120] ANF-[...
متن کامل