Using dynamic programming to generate optimized code in a Graham-Glanville style code generator
Thomas W. Christopher, Philip J. Hatcher, Ronald C. Kukuk · ACM SIGPLAN Notices · 1984
We have performed an investigation of using a dynamic programming to generate optimized code in a Graham-Glanville style code generator We use Earley's algorithm rather than an IR algorithm for parsing in the code generator Not only does the use of Earley's algorithm make the construction of the code generator very easy it allows the selection of optimal code by dynamic programming (using a modification of the technique developed by Lvon) We compare two implementations of this technique to conventional hand-coded code generators using a subset of BASIC as the source language Further we discuss the use of this technique in an experimental C compiler.
Cited by 11 works. doi:10.1145/502949.502877
Authors
References
- An efficient context-free parsing algorithm
- A portable compiler
- Optimal Code Generation for Expression Trees
- An experiment in table driven code generation
- A Machine Independent Algorithm for Code Generation and Its Use in Retargetable Compilers
- Syntax-directed least-errors analysis for context-free languages
- Automatic Derivation of Code Generators from Machine Descriptions
- Table-Driven Code Generation
- A practical method for code generation based on exhaustive search
- Experience with an automatic code generator generator