Skip to main content
Testna Učilnica FRI 24/25
  • Home
  • More
Close
Toggle search input
English ‎(en)‎
English ‎(en)‎ Slovenščina ‎(sl)‎ Македонски ‎(mk)‎ Русский ‎(ru)‎ 한국어 ‎(ko)‎
You are currently using guest access
Log in
Testna Učilnica FRI 24/25
Home
Expand all Collapse all
  1. prbuni
  2. 15 April - 21 April
  3. ASSIGNMENT: Linear intermediate code

ASSIGNMENT: Linear intermediate code

Completion requirements
Opened: Thursday, 18 April 2024, 12:00 AM
Due: Thursday, 25 April 2024, 11:00 AM

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.

You are currently using guest access (Log in)
Powered by Moodle
Obvestilo o avtorskih pravicah