i686-elf-gcc

GNU compiler collection for cross-compiling 32-bit x86 ELF binaries.

brewmacoslinux
Try with needOr install directly
Source

About

GNU compiler collection for i686-elf

Commands

i686-elf-gcci686-elf-g++i686-elf-asi686-elf-ldi686-elf-ari686-elf-objdumpi686-elf-nmi686-elf-ranlibi686-elf-strip

Examples

compile C code for bare metal i686 bootloader$ i686-elf-gcc -c boot.c -o boot.o -nostdlib -fno-builtin
link object files into ELF executable for embedded system$ i686-elf-gcc -T linker.ld boot.o kernel.o -o kernel.elf -nostdlib
compile and assemble operating system kernel code$ i686-elf-gcc -c kernel.c -o kernel.o -std=gnu99 -ffreestanding -Wall
inspect compiled binary symbols and sections$ i686-elf-objdump -d kernel.elf | head -50
cross compile C++ code targeting 32-bit x86 architecture$ i686-elf-g++ -c program.cpp -o program.o -fno-exceptions -fno-rtti