EXERCISES
- Develop a code generator for the Boolean expression calculator whose grammar Gb is given in Chapter 4.
- Rewrite the code generator given in Section 9.9 in C, which is written in Perl language.
- Develop your own code generator for mapping RPN into an assembly code. You may use C or Perl or any other language you are familiar with.
- Many of the assembly language code sequences are recurring in a typical code generation step. Implement these common sequences as assembly language macros.
- Keeping in view the Machine-dependent Optimization, how far the idea of defining and using assembly language macros for some frequently occurring code sequences is advisable?
Get Compilers: Principles and Practice now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.