Solutions to various problems from CS61C. Lecture videos are available on the Internet Archive.
The following steps require Docker and Docker Compose to be installed.
To prepare the cs61c
image, run the command (this step is necessary only once):
docker-compose build
To check that the image was built, run the command docker images
.
Run the commands:
docker-compose run --rm cs61c
cd /cs61c
A cross-compiler for MIPS called mips-gcc
can be used by running the commands:
docker-compose run --rm mips
cd /cs61c
Then use $CC
to compile C code.