Specification, Verification and Prototyping of an Optimized Compiler

He Jifeng, Jonathan Bowen

Research output: Contribution to journalArticlepeer-review

16 Scopus citations

Abstract

This paper generalizes an algebraic method for the design of a correct compiler to tackle specification and verification of an optimized compiler. The main optimization issues of concern here include the use of existing contents of registers where possible and the identification of common expressions. A register table is introduced in the compiling specification predicates to map each register to an expression whose value is held by it. We define different kinds of predicates to specify compilation of programs, expressions and Boolean tests. A set of theorems relating to these predicates, acting as a correct compiling specification, are presented and an example proof within the refinement algebra of the programming language is given. Based on these theorems, a prototype compiler in Prolog is produced.

Original languageEnglish
Pages (from-to)643-658
Number of pages16
JournalFormal Aspects of Computing
Volume6
Issue number6
DOIs
StatePublished - Dec 1994
Externally publishedYes

Keywords

  • Code optimization
  • Formal verification
  • Logic programming
  • Program compilation
  • Refinement algebra

Fingerprint

Dive into the research topics of 'Specification, Verification and Prototyping of an Optimized Compiler'. Together they form a unique fingerprint.

Cite this