Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.06 KB

README.md

File metadata and controls

31 lines (21 loc) · 1.06 KB

hermit-gcc

This repository provides an OCI image (ghcr.io/hermit-os/hermit-gcc, Dockerfile) containing the GCC cross-compiler for the Hermit Operating System.

Available Components

Usage

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