Optimal code selection in DAGs
M. Anton Ertl · ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL) · 1999
We extend the tree parsing approach to code selection to DAGs. In general, our extension does not produce the optimal code selection for all DAGs (this problem would be NPcomplete) , but for certain code selection grammars, it does. We present a method for checking whether a code selection grammar belongs to this set of DAG-optimal grammars, and use this method to check code selection grammars adapted from lcc: the grammars for the MIPS and SPARC architectures are DAG-optimal, and the code selection grammar for the 386 architecture is almost DAG-optimal.
Cited by 47 works. doi:10.1145/292540.292562
Authors
References
- A retargetable C compiler : design and implementation
- Code selection through object code optimization
- A code generation interface for ANSI C
- Engineering a simple, efficient code-generator generator
- An improvement to bottom-up tree pattern matching
- BEG: a generator for efficient back ends
- Efficient retargetable code generation using bottom-up tree pattern matching
- BURS automata generation
- One-pass, optimal tree parsing — With or without trees
- Fast code generation using automatically-generated decision trees