Downloads
Abstract
After compiler-component generators, such as lexical analyzer and parser a code generator is very important. This paper presents algorithm, which transforms expression trees into code for register machines. This algorithm combines a fast top-down tree pattern matching algorithm with dynamic programming, which produces optimal code for any machine in this class, and this algorithm runs in time linearly proportionals to the size of the input data. Additional Key Words and Phrases: Code generation, code generator-generator, code optimization, dynamic programming, pattern matching.
Issue: Vol 6 No 7&8 (2003)
Page No.: 39-49
Published: Aug 31, 2003
Section: Article
DOI: https://doi.org/10.32508/stdj.v6i7&8.3342
Download PDF = 360 times
Total = 360 times