Skip to content

toolchain

cahirwpz edited this page Nov 10, 2022 · 2 revisions

Toolchain

To build and run Mimiker you will need a toolchain, i.e. compiler, linker, ELF tools, emulator and debugger. The default option is to choose quite recent LLVM toolchain (check version in tools.mk), i.e. clang, lld, llvm from apt.llvm.org and QEmu.

NOTE: If you plan to run Mimiker on MIPS you need to install patched version of QEmu as well. Our version solves several issues not patched in the mainstream version – please refer to our list of patches. Prebuild package for Debian x86-64 can be found here.

Requiremnts

You can find all needed software in a Dockerfile. There is also a script [install-tools.sh][13] that will automatically install all needed software on Debian system.

You also need to install python requirements. E.g. with command:

pip3 install -r requirements.txt

A comment about dependencies from Dockerfile

# patch & quilt required by lua and programs in contrib/
# gperf required by libterminfo
# socat & tmux required by launch

Deprecated toolchain

The other method is to use a custom pre-build GNU toolchain, i.e. gcc, binutils and gdb. We prepared packages for Debian x86-64 based system, each for different target architecture: supports MIPS, AArch64, RISC-V 32-bit and 64-bit.

Clone this wiki locally