ASSIGNMENT: Memory layout
Zahteve zaključka
Odprto: sreda, 27. marec 2024, 07.00
Rok za oddajo: sreda, 3. april 2024, 07.00
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.