Mimicks the powerpc assignment machine named Forsete.
For the course edaa25 taught at LTH.
-
Install docker https://docs.docker.com/engine/installation/#desktop.
-
Run
docker build -t forsete .
from this directory. -
From assignment folder typing
docker run --rm -it -v `pwd`:/workdir forsete
will start forsete and enter the working directory. -
Type
note
to compile, test and generate a note.txtrun a.out
to manually run the file with qemu
-
Remove the image with
docker rmi forsete
If you are interested, the cross-compiler installation instructions can be found at https://wiki.debian.org/CrossToolchains.
qemu-ppc-static was acquired from https://snapshot.debian.org/archive/debian/20170924T211901Z/pool/main/q/qemu/qemu-user-static_2.1%2Bdfsg-12%2Bdeb8u6_amd64.deb.
- There's a bug when running dynamically linked powerpc binaries with qemu, so must be compiled statically https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1349941.