lotabout / write-a-C-interpreter

Write a simple interpreter of C. Inspired by c4 and largely based on it.

Repository from Github https://github.comlotabout/write-a-C-interpreterRepository from Github https://github.comlotabout/write-a-C-interpreter

multiple assignment of ax

dezashibi opened this issue · comments

Hello

I noticed this question seemed to be asked before in Chinese but unfortunately I couldn't get precise translation of the answers, why we need to do ax = *(char *)*sp++ = ax; while if we remove ax = from the beginning the answer should not change, please correct me if I'm wrong, why we need this? thanks

No big difference, you could remove the first assignment.

commented

but why do this?