Sign inSign up

thedudeinhtx/barebones-os-compiler

By thedudeinhtx

•Updated about 2 years ago

barebones os cross-compiler https://wiki.osdev.org/GCC_Cross-Compiler

Image
Developer tools
Operating systems
0

109

thedudeinhtx/barebones-os-compiler repository overview

binutils-2.43 gcc-14.2.0 gdb-15.2

https://wiki.osdev.org/GCC_Cross-Compiler⁠

Just allows for building your Barebones OS project without installing the compiler tools to your workstation.

Just mount your source directory as a volume at /src/project and run it.

 docker run -ti -v $PWD:/src/project  docker.io/thedudeinhtx/barebones-os-compiler:v0.2 i686-elf-as boot.s -o boot.o
 docker run -ti -v $PWD:/src/project  docker.io/thedudeinhtx/barebones-os-compiler:v0.2 i686-elf-gcc -c kernel.c -o kernel.o -std=gnu99 -ffreestanding -O2 -Wall -Wextra
 docker run -ti -v $PWD:/src/project  docker.io/thedudeinhtx/barebones-os-compiler:v0.2 i686-elf-gcc -T linker.ld -o myos.bin -ffreestanding -O2 -nostdlib boot.o kernel.o -lgcc

Tag summary

Content type

Image

Digest

sha256:210526867…

Size

1012.6 MB

Last updated

about 2 years ago

docker pull thedudeinhtx/barebones-os-compiler:v0.2