
308 Compilers – Principles and Practice
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?
FURTHER READING
1. Floating Point Operations in x86: Data movement: Load, Load Constant, and Store Arithmetic:
Add, Subtract, Multiply, ...