ASSIGNMENT: Memory layout
Completion requirements
Opened: Wednesday, 27 March 2024, 7:00 AM
Due: Wednesday, 3 April 2024, 7:00 AM
Using the template for the 6th homework, you should compute the stack frames and variable accesses. Assume the following:
- The size of type void is 0 bytes, the size of types bool and char is 1 byte, the size of type int and pointers is 8 byte.
- Elements of arrays are not padded, struct components are aligned on 8 byte boundaries (and thus padded if needed), union components are all aligned to the base address of a union.
You should upload your solution as a zip file named xxxxxxxx-memory.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.