11.1 Preparation for Code Generation

11.2 Generation of Directives

11.3 Simple Code Generation from AST's

11.4 Standard Code Generation Strategies

11.5 Code Generator Generators

11.6 Register Allocation

11.7 A Better Code Generation Algorithm from AST's 11.8 Code Generation from DAG's

11.9 Retargetable Code Generation

11.10 Peephole Optimization

11.11 Summary

Web References

Exercises

11.5 Code Generation Techniques

     True code generator generators are still evolving, although much research has been devoted to this topic. Retargetable code generators or table-driven code generators are becoming more common. They enable a code generator to be created for a new machine with relative ease by separating the code generation algorithm (the driver) from the machine description. This is similar to the front-end generators which we saw in earlier chapters.