
Project: Compiler for a MiniC 391
EXERCISES
Extend the miniC compiler discussed and developed in this chapter as follows:
1. Add all the float operations.
2. Add array implementation – grammar rules, semantics and code generation.
3. Add structures implementation – grammar rules, semantics and code generation.
4. Add file I/O. The macros available in macros.S may be helpful.
5. Replace the BST Symbol Table functions in symbol.c by those for AVL or Red–Black trees.
6. Implement some of the Optimization techniques for miniC.
FURTHER READING AND WEB RESOURCES
1. “Intel Architecture Software Developer’s Manual, Volume 2: Instruction Set Reference”, ...