PROGRAM MAKING IT WORK

Make your compiler generate working code that runs. The file $MINIJAVA/chap12/runtime.c is a C-language file containing several external functions useful to your MiniJava program. These are generally reached by externalCall from code generated by your compiler. You may modify this as necessary. Write a module Main that calls on all the other modules to produce an assembly language file prog.s for each input program prog.java. This assembly language program should be assembled (producing prog.o) and linked with runtime.o to produce an executable file.

Programming projects

After your MiniJava compiler is done, here are some ideas for further work: