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 条
  • [31] Glass properties: compilation, evaluation, and prediction
    Mazurin, OV
    JOURNAL OF NON-CRYSTALLINE SOLIDS, 2005, 351 (12-13) : 1103 - 1112
  • [32] Interprocedural partial redundancy elimination with application to distributed memory compilation
    Agrawal, G
    IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, 1998, 9 (07) : 609 - 625
  • [33] On Supporting Efficient Partial Reconfiguration with Just-In-Time Compilation
    Sidiropoulos, Harry
    Siozios, Kostas
    Figuli, Peter
    Soudris, Dimitrios
    Hubner, Michael
    2012 IEEE 26TH INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM WORKSHOPS & PHD FORUM (IPDPSW), 2012, : 328 - 335
  • [34] Partial Flattening: A Compilation Technique for Irregular Nested Parallelism on GPGPUs
    Huang, Ming-Hsiang
    Yang, Wuu
    PROCEEDINGS 45TH INTERNATIONAL CONFERENCE ON PARALLEL PROCESSING - ICPP 2016, 2016, : 552 - 561
  • [35] Exact knowledge compilation in predicate calculus: The partial achievement case
    Roussel, O
    Mathieu, P
    AUTOMATED DEDUCTION - CADE-14, 1997, 1249 : 161 - 175
  • [36] REALISTIC CLASSIFICATION AND EVALUATION OF SEROLOGY
    KAUFFMANN, F
    ACTA PATHOLOGICA ET MICROBIOLOGICA SCANDINAVICA SECTION B-MICROBIOLOGY, 1973, 81 (02): : 198 - 202
  • [37] Realistic evaluation of social inclusion
    Nousiainen, Marko
    Leemann, Lars
    EVALUATION, 2024, 30 (02) : 288 - 305
  • [38] What Makes a Realistic Evaluation?
    Byng, Richard
    FAMILY MEDICINE, 2011, 43 (02) : 112 - 113
  • [39] Compilation and evaluation of Robert-Mayer inheritance
    不详
    ZEITSCHRIFT DES VEREINES DEUTSCHER INGENIEURE, 1942, 86 : 144 - 144
  • [40] Realistic evaluation of liming materials
    Claassens, AS
    Bornman, JJ
    Barnard, RO
    Van Vuuren, JAJ
    COMMUNICATIONS IN SOIL SCIENCE AND PLANT ANALYSIS, 2000, 31 (11-14) : 1905 - 1912