Using rewriting techniques to produce code generators and proving them correct (Q2639631)
From MaRDI portal
| This is the item page for this Wikibase entity, intended for internal use and editing purposes. Please use this page instead for the normal view: Using rewriting techniques to produce code generators and proving them correct |
scientific article
| Language | Label | Description | Also known as |
|---|---|---|---|
| English | Using rewriting techniques to produce code generators and proving them correct |
scientific article |
Statements
Using rewriting techniques to produce code generators and proving them correct (English)
0 references
1990
0 references
This paper presents a solution to the problem of code-generator generation. The approach is based on a target machine description in which the basic concepts used (storage classes, access modes, instructions) are described by tree patterns that form the terms of an abstract data type. The source program is presented as an input to the code generator in an intermediate representation (IR) which is a term of the same abstract data type. The code generation consists of a rewriting process which modifies the IR until a pattern matches with an instruction template of the target machine. The axioms of the abstract data type are used to prove that the rewritings preserve the semantics of the intermediate representation. The basic concepts are illustrated by MC 68000 examples throughout the paper.
0 references
rewriting system
0 references
code-generator
0 references