An algebraic approach to the design of compilers for object-oriented languages

Author:

Duran Adolfo1,Cavalcanti Ana2,Sampaio Augusto3

Affiliation:

1. Universidade Federal da Bahia, Centro de Processamento de Dados MEFES Research Group, CEP 40170-110, Salvador, BA, Brazil

2. Department of Computer Science, University of York, YO10 5DD, York, UK

3. Universidade Federal de Pernambuco, Centro de Informática, Caixa Postal 7851, CEP 50732-970, Recife, PE, Brazil

Abstract

Abstract In this paper we describe an algebraic approach to construct provably correct compilers for object-oriented languages; this is illustrated for programs written in a language similar to a sequential subset of Java. It includes recursive classes, inheritance, dynamic binding, recursion, type casts and test, assignment, and class-based visibility, but a copy semantics. In our approach, we tackle the problem of compiler correctness by reducing the task of compilation to that of program refinement. Compilation is identified with the reduction of a source program to a normal form that models the execution of object code. The normal form is generated by a series of correctness-preserving transformations that are proved sound from the basic laws of the language; therefore it is correct by construction. The main advantages of our approach are the characterisation of compilation within a uniform framework, where comparisons and translations between semantics are avoided, and the modularity and extensibility of the resulting compiler.

Publisher

Association for Computing Machinery (ACM)

Subject

Theoretical Computer Science,Software

Reference52 articles.

1. Back R (1980) Correct preserving program refinements: proof theory and application volume 131 of Mathematical centre tracts. Mathematical Centre Amsterdam

2. Börger E Batory DS (2008) Coupling design and verification in software product lines. In: FoIKS pp 1–4

3. Blech JO Grégoire B (2008) Certifying code generation with Coq. In: Workshop Compiler Optimization meets Compiler Verification (COCV 2008) ENTCS. Elsevier

4. Blech JO Grégoire B (2008) Certifying code generation with Coq: A tool description. In: Workshop Compiler Optimization meets Compiler Verification (COCV 2008) ENTCS. Elsevier

Cited by 7 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Laws of Timed State Machines;The Computer Journal;2023-12-22

2. A process calculus BigrTiMo of mobile systemsand its formal semantics;Formal Aspects of Computing;2021-03

3. A UTP approach for rTiMo;Formal Aspects of Computing;2018-11

4. Formal Verification of mCWQ Using Extended Hoare Logic;Mobile Networks and Applications;2018-09-29

5. UTP Semantics for rTiMo;Unifying Theories of Programming;2017

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3