Code generation using an orthogonal model

被引:0
|
作者
Cordy, James R. [1 ]
Holt, Richard C. [1 ]
机构
[1] Queen's Univ at Kingston, Canada
关键词
Codes; Symbolic - Computer Programming Languages - Mathematical Techniques--Trees;
D O I
暂无
中图分类号
学科分类号
摘要
This paper describes a new systematic approach to code generation. The approach is based on an orthogonal model, in which implementation of language-level operators ('operators') and addressing operators ('operands') is achieved by two independent subtasks. Each of these phases is specified using a set of decision trees that encode the set of possible implementation templates for each language feature and the set of constraints under which each can be applied. Code selection in each phase is achieved by interpreting these trees using a single comprehensive selection algorithm. The method easily extends to machine independence across a large class of target computers by abstracting the implementation templates into machine-independent implementation strategies. The selection algorithm is then modified to select between implementation strategies based on a machine capability 'menu' that describes each target machine in terms of the subset of implementation strategies for which it has corresponding instruction sequences. The method has been used to implement a prototype machine-independent code generator for the Concurrent Euclid programming language whose generated code density is consistently within four per cent of production machine-dependent code generators across its entire target class of five modern computers.
引用
收藏
页码:301 / 320
相关论文
共 50 条
  • [41] LAMNER: Code Comment Generation Using Character Language Model and Named Entity Recognition
    Sharma, Rishab
    Chen, Fuxiang
    Fard, Fatemeh
    30TH IEEE/ACM INTERNATIONAL CONFERENCE ON PROGRAM COMPREHENSION (ICPC 2022), 2022, : 48 - 59
  • [42] Simulation code generation on WWW using object-oriented manufacturing resource model
    Lee, S
    NETWORK INTELLIGENCE: INTERNET-BASED MANUFACTURING, 2000, 4208 : 84 - 95
  • [43] LAMNER: Code Comment Generation Using Character Language Model and Named Entity Recognition
    Sharma, Rishab
    Chen, Fuxiang
    Fard, Fatemeh
    IEEE International Conference on Program Comprehension, 2022, 2022-March : 48 - 59
  • [44] CODE GENERATION PARADIGMS ON OPTICAL ORTHOGONAL AND OTHER CODES IN A FIBER OPTIC CDMA LAN
    RAVINDRANATHAN, KC
    SELVARAJAN, A
    JOURNAL OF SCIENTIFIC & INDUSTRIAL RESEARCH, 1995, 54 (01): : 19 - 23
  • [45] Code Generation Paradigms on Optical Orthogonal and other Codes in a Fibre Optic CDMA LAN
    Ravindranathan, K. C.
    Selvarajan, A.
    Jornal of the Chemical Society. Perkin Transactions 1, 1994, 54 (24):
  • [46] Switch Code Generation Using Program Synthesis
    Gao, Xiangyu
    Kim, Taegyun
    Wong, Michael D.
    Raghunathan, Divya
    Varma, Aatish Kishan
    Kannan, Pravein Govindan
    Sivaraman, Anirudh
    Narayana, Srinivas
    Gupta, Aarti
    SIGCOMM '20: PROCEEDINGS OF THE 2020 ANNUAL CONFERENCE OF THE ACM SPECIAL INTEREST GROUP ON DATA COMMUNICATION ON THE APPLICATIONS, TECHNOLOGIES, ARCHITECTURES, AND PROTOCOLS FOR COMPUTER COMMUNICATION, 2020, : 44 - 61
  • [47] Using LPNMR for problem specification and code generation
    Cadoli, M
    LOGIC PROGRAMMING AND NONMONOTONIC REASONING, 1999, 1730 : 372 - 372
  • [48] An efficient model for DSP code generation: Performance, code size, estimated energy
    Gebotys, CH
    TENTH INTERNATIONAL SYMPOSIUM ON SYSTEM SYNTHESIS, PROCEEDINGS, 1997, : 41 - 47
  • [49] Automatic generation of XForms code using DTD
    Lee, E
    Kim, TH
    Fourth Annual ACIS International Conference on Computer and Information Science, Proceedings, 2005, : 210 - 214
  • [50] Malware phylogeny generation using permutations of code
    Karim, Md. Enamul
    Walenstein, Andrew
    Lakhotia, Arun
    Parida, Laxmi
    JOURNAL OF COMPUTER VIROLOGY AND HACKING TECHNIQUES, 2005, 1 (1-2): : 13 - 23