This repository provides an OCI image (ghcr.io/hermit-os/hermit-gcc
, Dockerfile
) containing the GCC cross-compiler for the Hermit Operating System.
To compile Hermit applications using this image, you need a built Hermit kernel (libhermit.a
).
You can then compile applications like this:
docker run --rm -v .:/mnt -w /mnt ghcr.io/hermit-os/hermit-gcc:latest x86_64-hermit-gcc -o app app.c libhermit.a
You can also use the image interactively:
docker run --rm -it -v .:/mnt -w /mnt ghcr.io/hermit-os/hermit-gcc:latest