Control Flow Treatment in a Simple Semantics-Directed Compiler Generator

Henning Christiansen, N. Jones
{"title":"Control Flow Treatment in a Simple Semantics-Directed Compiler Generator","authors":"Henning Christiansen, N. Jones","doi":"10.7146/DPB.V10I137.7411","DOIUrl":null,"url":null,"abstract":"A simple algebra-based algorithm for compiler generation is described. Its input is a semantic definition of a programming language, and its output is a ''compiling semantics'' which maps each source program into a sequence of compile-time actions whose net effect on execution is the production of a semantically equivalent target program. The method does not require individual compiler correctness proofs or the construction of specialized target algebras. Source program execution is assumed to proceed by performing a series of elementary actions on a runtime state. A semantic algebra is introduced to represent and manipulate possible execution sequences. A source semantic definition has two parts: A set of semantic equations mapping source programs into terms of the algebra, and an interpretation which gives concrete definitions of the state and the elementary actions on it.","PeriodicalId":432086,"journal":{"name":"Formal Description of Programming Concepts","volume":"8 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1981-09-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"23","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Formal Description of Programming Concepts","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.7146/DPB.V10I137.7411","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 23

Abstract

A simple algebra-based algorithm for compiler generation is described. Its input is a semantic definition of a programming language, and its output is a ''compiling semantics'' which maps each source program into a sequence of compile-time actions whose net effect on execution is the production of a semantically equivalent target program. The method does not require individual compiler correctness proofs or the construction of specialized target algebras. Source program execution is assumed to proceed by performing a series of elementary actions on a runtime state. A semantic algebra is introduced to represent and manipulate possible execution sequences. A source semantic definition has two parts: A set of semantic equations mapping source programs into terms of the algebra, and an interpretation which gives concrete definitions of the state and the elementary actions on it.
简单语义导向编译器生成器中的控制流处理
描述了一种简单的基于代数的编译器生成算法。它的输入是一种编程语言的语义定义,它的输出是一种“编译语义”,它将每个源程序映射到一系列编译时操作,这些操作对执行的净影响是产生语义等效的目标程序。该方法不需要单独的编译器正确性证明或专门目标代数的构造。源程序的执行假定是通过对运行时状态执行一系列基本操作来进行的。引入语义代数来表示和操作可能的执行序列。源语义定义由两部分组成:一组将源程序映射为代数的语义方程,以及给出状态及其基本动作的具体定义的解释。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信