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 条
  • [21] Case for Fast FPGA Compilation using Partial Reconfiguration
    Park, Dongjoon
    Xiao, Yuanlong
    Magnezi, Nevo
    DeHon, Andre
    2018 28TH INTERNATIONAL CONFERENCE ON FIELD PROGRAMMABLE LOGIC AND APPLICATIONS (FPL), 2018, : 235 - 238
  • [22] Realistic evaluation bloodlines
    Pawson, R
    Tilley, N
    AMERICAN JOURNAL OF EVALUATION, 2001, 22 (03) : 317 - 324
  • [23] Tracing vs. Partial Evaluation Comparing Meta-Compilation Approaches for Self-Optimizing Interpreters
    Marr, Stefan
    Ducasse, Stephane
    ACM SIGPLAN NOTICES, 2015, 50 (10) : 821 - 839
  • [24] COMPILATION AND EVALUATION OF LINEAR MUTUAL RECURSIONS
    HAN, JW
    INFORMATION SCIENCES, 1993, 69 (1-2) : 157 - 183
  • [25] Ef cient compilation of lazy evaluation
    Johnsson, T
    ACM SIGPLAN NOTICES, 2004, 39 (04) : 125 - 126
  • [26] EVALUATION AND COMPILATION OF CHEMICAL KINETIC DATA
    COHEN, N
    WESTBERG, K
    JOURNAL OF PHYSICAL CHEMISTRY, 1979, 83 (01): : 46 - 50
  • [27] COMPILATION, EVALUATION, AND PRESENTATION OF ELECTROCHEMICAL DATA
    MEITES, L
    ZUMAN, P
    RUPP, E
    ABSTRACTS OF PAPERS OF THE AMERICAN CHEMICAL SOCIETY, 1981, 182 (AUG): : 53 - ANYL
  • [28] The Boeotian Slave Names Compilation and Evaluation
    Fragiadakis, Charilaos
    TYCHE, 2007, 22 : 9 - 33
  • [29] NUCLEAR DATA EVALUATION AND COMPILATION FOR A=110
    BERTRAND, FE
    RAMAN, S
    BULLETIN OF THE AMERICAN PHYSICAL SOCIETY, 1971, 16 (01): : 14 - &
  • [30] Design, implementation, and evaluation of a compilation server
    Lee, Han B.
    Diwan, Amer
    Moss, J. Eliot B.
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2007, 29 (04):