On one-pass CPS transformations

被引:6
|
作者
Danvy, Olivier [1 ]
Millikin, Kevin [1 ]
Nielsen, Lasse R. [1 ]
机构
[1] Aarhus Univ, Dept Comp Sci, BRIC, DK-8200 Aarhus, Denmark
关键词
D O I
10.1017/S0956796807006387
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We bridge two distinct approaches to one-pass CPS transformations, i.e., CPS transformations that reduce administrative redexes at transformation time instead of in a post-processing phase. One approach is compositional and higher-order, and is independently due to Appel, Danvy and Filinski, and Wand, building on Plotkin's seminal work. The other is non-compositional and based on a reduction semantics for the lambda-calculus, and is due to Sabry and Felleisen. To relate the two approaches, we use three tools: Reynolds's defunctionalization and its left inverse, refunctionalization; a special case of fold-unfold fusion due to Ohori and Sasano, fixed-point promotion; and an implementation technique for reduction semantics due to Danvy and Nielsen, refocusing. This work is directly applicable to transforming programs into monadic normal form.
引用
收藏
页码:793 / 812
页数:20
相关论文
共 50 条
  • [1] Code transformations for one-pass analysis
    Li, Xiaogang
    Agrawal, Gagan
    [J]. LANGUAGES AND COMPILERS FOR PARALLEL COMPUTING, 2006, 4339 : 377 - +
  • [2] A first-order one-pass CPS transformation
    Danvy, O
    Nielsen, LR
    [J]. THEORETICAL COMPUTER SCIENCE, 2003, 308 (1-3) : 239 - 257
  • [3] A first-order one-pass CPS transformation
    Danvy, O
    Nielsen, LR
    [J]. FOUNDATIONS OF SOFTWARE SCIENCE AND COMPUTATION STRUCTURES, PROCEEDINGS, 2002, 2303 : 98 - 113
  • [4] ONE-PASS TRANSFORMATIONS OF ATTRIBUTED PROGRAM TREES
    ALBLAS, H
    [J]. ACTA INFORMATICA, 1987, 24 (03) : 299 - 352
  • [5] ONE-PASS CULTIVATION
    SIMS, REH
    [J]. NEW ZEALAND JOURNAL OF AGRICULTURE, 1977, 135 (03): : 38 - &
  • [6] One-Pass Reductions
    Vagvolgyi, Sandor
    [J]. ACTA CYBERNETICA, 2016, 22 (03): : 633 - 655
  • [7] ONE-PASS MODELING
    JONES, JH
    HARNE, RL
    FIRTH, KJ
    [J]. TRANSACTIONS OF THE AMERICAN NUCLEAR SOCIETY, 1985, 49 (JUN): : 471 - 473
  • [8] VALUE OF ONE-PASS RETENTION
    FRANKLE, WE
    SHERIDAN, JL
    [J]. TAPPI, 1976, 59 (02): : 84 - 88
  • [9] On one-pass term rewriting
    Fülöp, Z
    Jurvanen, E
    Steinby, M
    Vágvölgyi, S
    [J]. MATHEMATICAL FOUNDATIONS OF COMPUTER SCIENCE 1998, 1998, 1450 : 248 - 256
  • [10] One-Pass Clustering Superpixels
    Kesavan, Yogarajah
    Ramanan, Amirthalingam
    [J]. 2014 7TH INTERNATIONAL CONFERENCE ON INFORMATION AND AUTOMATION FOR SUSTAINABILITY (ICIAFS), 2014,