By reading C codes and their corresponding MIPS codes, have a basic idea of systems' programming and the memory model.
- Clone the project to a VM or Docker with
mipsel
andqemu
installed. You can use this Docker: https://github.com/SchrodingerZhu/csc3050-docker. - To compile and run any program, execute
make run TARGET=XXX
, e.g.make run TARGET=question1
. - To remove the MIPS code and executable for one program, execute
make clean TARGET=XXX
.
- question1
- question2
- question3
- functionPointer
- structMem
- structMem2
- structMem3
- structCasting
- I strongly recommend you to read
Redis
's source codes if you want to be a fluent C programmer. (PS: You may read a stable branch rather than the unstable one.)
You can add an issue or email to me.