EXERCISES

  1. Develop a code generator for the Boolean expression calculator whose grammar Gb is given in Chapter 4.
  2. Rewrite the code generator given in Section 9.9 in C, which is written in Perl language.
  3. 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.
  4. Many of the assembly language code sequences are recurring in a typical code generation step. Implement these common sequences as assembly language macros.
  5. 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?

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.135.247.181