ASSIGNMENT: Instruction selection

Odprto: četrtek, 13. april 2023, 00.00
Rok za oddajo: torek, 25. april 2023, 07.00

Using the template for the 9th assignment, you should implement the generator of MMIX machine instructions (but with virtual registers, i.e., the existing temporaries).  You should assume that

  • register $254 will be used for SP,
  • register $253 will be used for FP,
  • function calls are performed using PUSHJ and POP instructions (which use MMIX's register stack for storing and restoring all local registers).

Furthermore, comment out the interpreter.

You should upload your solution as a zip file named xxxxxxxx-asmgen.zip where xxxxxxxx stands for you student identification number.  The contents of the uploaded zip file must have exactly the same directory structure as the template.  The uploaded zip file must contain complete source distribution (including the previous phases), but without antlr and generated files.