Code Selector Description Generation
In Section 3.3.2, it was mentioned that the code selector’s task is to map the IR to a semantically equivalent sequence of machine instructions. A common technique for code selection is the tree-pattern-matching technique, which is also employed in the CoSy platform. Like in many other ADLs, the required tree grammar must be manually specified in the Compiler Designer. Practical experience showed that this is a time-consuming, tedious, and error-prone task. Additionally, two major drawbacks have been identified: first of all, the designer actually starts with an empty code selector specification, i.e., he must have the knowledge about which code selector rules are necessary to build a working compiler that is able to translate arbitrary input programs. Second the code selector description from a previous
KeywordsBasic Rule Tree Pattern Mapping Rule Semantic Statement Code Selector
Unable to display preview. Download preview PDF.