Overview and industrial application of code generator generators

被引:0
|
作者
Andersson, N
Fritzson, P
机构
[1] Dept. of Comp. and Info. Science, Linköping University
关键词
EFFICIENT;
D O I
10.1016/0164-1212(95)00124-7
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
During the past 10 to 15 years, there has been active research in the area of automatically generating the code generator part of compilers from formal specifications. However, little has been reported on the application of these systems in an industrial setting. This paper attempts to fill this gap, in addition to providing a tutorial overview of the most well-known methods. Four systems for automatic generation of code generators are described in this paper. CGSS, BEG, TWIG and BURG. CGSS is an older Graham-Glanville style system based on pattern matching through parsing, whereas BEG, TWIG, and BURG are more recent systems based on tree pattern matching combined with dynamic programming. An industrial-strength code generator previously implemented for a special-purpose language using the CGSS system is described and compared in some detail to our new implementation based on the BEG system. Several problems of integrating local and global register allocations within automatically generated code generators are described, and some solutions are proposed. In addition, the specification of a full code generator for SUN SPARC with register windows using the BEG system is described. We finally conclude that current technology of automatically generating code generators is viable in an industrial setting. However, further research needs to be done on the problem of properly integrating register allocation and instruction scheduling with instruction selection, when both are generated from declarative specifications.
引用
收藏
页码:185 / 214
页数:30
相关论文
共 50 条
  • [31] On the correctness of code generators for PLCs
    Pollmaecher, Dirk
    Zimmermann, Wolf
    WMSCI 2005: 9TH WORLD MULTI-CONFERENCE ON SYSTEMICS, CYBERNETICS AND INFORMATICS, VOL 2, 2005, : 175 - 180
  • [32] Code generators for mathematical functions
    Brunie, Nicolas
    de Dinechin, Florent
    Kupriianova, Olga
    Lauter, Christoph
    IEEE 22ND SYMPOSIUM ON COMPUTER ARITHMETIC ARITH 22, 2015, : 66 - 73
  • [33] PROGRAMMING SYSTEM FOR CODE GENERATORS
    CHEREMISINOV, DI
    PROGRAMMING AND COMPUTER SOFTWARE, 1982, 8 (03) : 140 - 146
  • [34] The characteristic generators for a group code
    Kan, Haibin
    Li, Xuefei
    Shen, Hong
    IEICE TRANSACTIONS ON FUNDAMENTALS OF ELECTRONICS COMMUNICATIONS AND COMPUTER SCIENCES, 2006, E89A (05) : 1513 - 1517
  • [35] SYNTHESIS OF CYCLIC CODE GENERATORS
    LOUI, JS
    DAVIES, AC
    CHOW, PEK
    ELECTRONIC ENGINEERING, 1965, 37 (447): : 339 - &
  • [36] PRESETTING POLYNOMIAL CODE GENERATORS
    MARTIN, JD
    ELECTRONICS LETTERS, 1976, 12 (17) : 421 - 422
  • [37] RETARGETABLE CODE GENERATORS - REPLY
    GANAPATHI, M
    HENNESSY, JL
    FISCHER, CN
    COMPUTING SURVEYS, 1983, 15 (03) : 280 - 281
  • [38] Adjoint code generator
    CHENG Qiang1
    2 LSEC
    3 Institute of Software
    4 College of Applied Science
    Science China(Information Sciences), 2009, (06) : 926 - 941
  • [39] Adjoint code generator
    Cheng Qiang
    Cao JianWen
    Wang Bin
    Zhang HaiBin
    SCIENCE IN CHINA SERIES F-INFORMATION SCIENCES, 2009, 52 (06): : 926 - 941
  • [40] Adjoint code generator
    Qiang Cheng
    JianWen Cao
    Bin Wang
    HaiBin Zhang
    Science in China Series F: Information Sciences, 2009, 52 : 926 - 941