C Execution Trace

During the lecture, the trace for C was supposed to work the same way as the MIPS Traces: The code line (in MIPS it was the memory location) displayed in the table has the state of the program before the statement was executed.

image

During the tutorials, it was shown as the state of the program after executing the line it is referring to.

What is the way we are supposed to do it?

4 Likes

Good Point. Sorry for the inconsistency. We decided that the “default” way is to do it like in the lecture and in the book (i.e. showing the state before). For the minitest, we’ll accept both (before/after).

3 Likes