Hard‐coding bottom‐up code generation tables to save time and space
- 1 January 1991
- journal article
- Published by Wiley in Software: Practice and Experience
- Vol. 21 (1), 1-12
- https://doi.org/10.1002/spe.4380210102
Abstract
Code generators based on bottom‐up rewrite systems (BURS) are automatically generated from machine‐description grammars. They produce locally optimal code for expression trees, but their tables are large and require compile‐time interpretation. This paper describes a program that compiles BURS tables into a combination of hard code and data. Hard‐coding exposed important opportunities for compression that were previously hidden in the tables, so the hard‐coded code generators are not just faster but also significantly smaller than their predecessors. A VAX code generator takes 21.4Kbytes and identifies optimal assembly code in about 50 VAX instructions per node.This publication has 6 references indexed in Scilit:
- A language for writing code generatorsACM SIGPLAN Notices, 1989
- Automatic generation of fast optimizing code generatorsACM SIGPLAN Notices, 1988
- Optimal code generation for expression trees: an application BURS theoryPublished by Association for Computing Machinery (ACM) ,1988
- An improvement to bottom-up tree pattern matchingPublished by Association for Computing Machinery (ACM) ,1987
- Very fast LR parsingPublished by Association for Computing Machinery (ACM) ,1986
- Pattern Matching in TreesJournal of the ACM, 1982