LangProc / langproc-2021-cw

5 stars 4 forks source link

qemu-mips #11

Closed sv720 closed 2 years ago

sv720 commented 2 years ago

Hi, I was wondering what version/setup of qemu-mips will be used to test our compiler and where we can download it? qemu-system-mips is on apt but not sure if this is the same thing... Would it also be possible to get a quick explanation as to how we can test the mips code that we generate (in a similar way to what was done in lab3) ?

ymherklotz commented 2 years ago

Hi, it should already be available in the vm, which installs packages: qemu and qemu-user. This should be enough to get it working.

And to test the mips code that you generate, you should be able to follow the instructions in the README.

sv720 commented 2 years ago

Due to... challenges... in disk size - I'm not using a VM so I'm not using the Vagrant file (not yet at least). I assume running this should work?

MIPS cross-compiler stuff

  sudo apt-get -y install g++-mips-linux-gnu gdb-multiarch

  # QEMU run-time emulator
  sudo apt-get -y install qemu