ASSIGNMENT: Linear intermediate code
Using the template for the 8th homework, you should implement the generation of the linear intermediate code. The generated linear code can be tested using the small interpreter (if the function result is void, the function should still store some value into variable RV to keep the interpreter happy). Please post some test programs to forum - it will help you all a lot (but I added some test programs in prg directory).
As agreed in the classroom there are a few simplifications you need to make:
1. Characters in arrays are padded to 8 byte boundaries.
2. The casted expression is not lvalue anymore.
3. The newline character (\n) should be translated into \0A.
You should
upload your solution as a zip file named xxxxxxxx-imclin.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.