Realistic compilation by partial evaluation

被引:3
|
作者
Sperber, M
Thiemann, P
机构
[1] Wilhelm-Schickard-Inst. F. I., Universität Tübingen, D-72076 Tübingen
关键词
semantics-directed compiler generation; partial evaluation; compilation of higher-order functional languages;
D O I
10.1145/249069.231419
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Two key steps in the compilation of strict functional languages are the conversion of higher-order functions to data structures (closures) and the transformation to tail-recursive style. We show how to perform both steps at once by applying first-order offline partial evaluation to a suitable interpreter. The resulting code is easy to transliterate to low-level C or native code. We have implemented the compilation to C; it yields a performance comparable to that of other modern Scheme-to-C compilers. In addition, we have integrated various optimizations such as constant propagation, higher-order removal and arity raising simply by modifying the underlying interpreter. Purely first-order methods suffice to achieve the transformations. Our approach is an instance of semantics-directed compiler generation.
引用
收藏
页码:206 / 214
页数:9
相关论文
共 50 条
  • [41] An Evaluation of Different Modeling Techniques for Iterative Compilation
    Park, Eunjung
    Kulkarni, Sameer
    Cavazos, John
    PROCEEDINGS OF THE PROCEEDINGS OF THE 14TH INTERNATIONAL CONFERENCE ON COMPILERS, ARCHITECTURES AND SYNTHESIS FOR EMBEDDED SYSTEMS (CASES '11), 2011, : 65 - 74
  • [42] EVALUATION AND COMPILATION OF REACTION-RATE DATA
    HAMPSON, RF
    GARVIN, D
    JOURNAL OF PHYSICAL CHEMISTRY, 1977, 81 (25): : 2317 - 2319
  • [43] THERMAL CONDUCTIVITY OF FOODS - DATA COMPILATION AND EVALUATION
    QASHOU, S
    VACHON, RI
    TOULOUKI.YS
    ASHRAE JOURNAL, 1971, 13 (12): : 32 - &
  • [44] Compilation and Evaluation of Isomeric Fission Yield Ratios
    Sears, C.J.
    Mattera, A.
    McCutchan, E.A.
    Sonzogni, A.A.
    Brown, D.A.
    Potemkin, D.
    Nuclear Data Sheets, 2021, 173 : 118 - 143
  • [45] Compilation and Evaluation of Isomeric Fission Yield Ratios
    Sears, C. J.
    Mattera, A.
    McCutchan, E. A.
    Sonzogni, A. A.
    Brown, D. A.
    Potemkin, D.
    NUCLEAR DATA SHEETS, 2021, 173 : 118 - 143
  • [46] Establishment of an open database of realistic simulated data for evaluation of partial volume correction techniques in brain PET/MR
    Ana Mota
    Vesna Cuplov
    Jonathan Schott
    Brian Hutton
    Kris Thielemans
    Ivana Drobnjak
    John Dickson
    Julien Bert
    Ninon Burgos
    Jorge Cardoso
    Marc Modat
    Sebastien Ourselin
    Kjell Erlandsson
    EJNMMI Physics, 2 (Suppl 1)
  • [47] A SELF-APPLICABLE PARTIAL EVALUATOR AND ITS USE IN INCREMENTAL COMPILATION
    FUJITA, H
    FURUKAWA, K
    NEW GENERATION COMPUTING, 1988, 6 (2-3) : 91 - 118
  • [48] QUALITATIVE PARTIAL-DIFFERENTIAL EQUATIONS AND THEIR REALISTIC APPLICATIONS
    DOHNAL, M
    COMPUTERS IN INDUSTRY, 1992, 20 (02) : 209 - 217
  • [49] Erratum to: Establishment of an open database of realistic simulated data for evaluation of partial volume correction techniques in brain PET/MR
    Ana Mota
    Vesna Cuplov
    Ivana Drobnjak
    John Dickson
    Julien Bert
    Ninon Burgos
    Jorge Cardoso
    Marc Modat
    Sebastien Ourselin
    Jonathan Schott
    Kjell Erlandsson
    Brian Hutton
    Kris Thielemans
    EJNMMI Physics, 2 (1)
  • [50] Comprehensive evaluation and compilation of H3+ spectroscopy
    Lindsay, CM
    McCall, BJ
    JOURNAL OF MOLECULAR SPECTROSCOPY, 2001, 210 (01) : 60 - 83