A formally verified SSA-based compiler middle-end - Archive ouverte HAL Access content directly
Reports (Research Report) Year : 2011

A formally verified SSA-based compiler middle-end

Abstract

CompCert is a formally verified compiler that generates compact and efficient PowerPC, ARM and x86 code for a large and realistic subset of the C language. However, CompCert foregoes using Static Single Assignment (SSA), an intermediate representation that allows for writing simpler and faster optimizers, and is used by many compilers. In fact, it has remained an open problem to verify formally a SSA-based compiler middle-end. We report on a formally verified, SSA-based, middle-end for CompCert. Our middle-end performs conversion from CompCert intermediate form to SSA form, optimization of SSA programs, including Global Value Numbering, and transforming out of SSA to intermediate form. In addition to provide the first formally verified SSA-based middle-end, we address two problems raised by Leroy [13]: giving a simple and intuitive formal semantics to SSA, and leveraging the global properties of SSA to reason locally about program optimizations.
Fichier principal
Vignette du fichier
main.pdf (1.11 Mo) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

inria-00634702 , version 1 (22-10-2011)
inria-00634702 , version 2 (10-01-2012)
inria-00634702 , version 3 (02-04-2013)

Identifiers

  • HAL Id : inria-00634702 , version 2

Cite

Gilles Barthe, Delphine Demange, David Pichardie. A formally verified SSA-based compiler middle-end. [Research Report] 2011. ⟨inria-00634702v2⟩
975 View
673 Download

Share

Gmail Facebook X LinkedIn More