Your cart is currently empty!
Problem Write an Intermediate Code Generator for the intermediate representation that you designed in Assignment 2. The output of the assignment must be a linked-list of Three-Address Code (3AC) statements corresponding to each function in the input program. This assignment requires you to: attach semantic actions to the parser implemented in Assignment 3…
Problem
Write an Intermediate Code Generator for the intermediate representation that you designed in Assignment 2. The output of the assignment must be a linked-list of Three-Address Code (3AC) statements corresponding to each function in the input program. This assignment requires you to:
– generate intermediate representation as a linked-list of three-address code statements;
– the associated symbol table.
It should support all types supported by the subset of the source language identified by you (including arrays and pointers). It should also have support for function calls.
Details
– the source of the implementation (in a folder called “src” within “asgn4”;
– a Makefile to build the implementation (it should generate an executable called “irgen” in the folder
“asgn4/bin”;
– a set of at least 5 test cases that you have used to check your implementation (in a folder “asgn4/test”);
– a README file with a brief description for building and running it (within “asgn4”).
Binaries should NOT be part of the submission. Clean the folder of all object and executable files before submission.
file), quality of test-cases etc. carry marks.
– cd asgn4
– make
– bin/irgen test/test1.c (to execute the first test-case file test1.c; the sequence of three-address code state- ments should be displayed on the standard output)