aarch64-elf-gcc

GNU compiler collection for cross-compiling to aarch64-elf targets

brewmacoslinux
Try with needOr install directly
Source

About

GNU compiler collection for aarch64-elf

Commands

aarch64-elf-gccaarch64-elf-g++aarch64-elf-araarch64-elf-ldaarch64-elf-objdumpaarch64-elf-objcopyaarch64-elf-nmaarch64-elf-strip

Examples

Compile a C file for aarch64-elf target$ aarch64-elf-gcc -O2 -c main.c -o main.o
Link object files into an executable$ aarch64-elf-gcc main.o -o program.elf -Tlinker.ld
Compile and optimize for bare-metal ARM64$ aarch64-elf-gcc -march=armv8-a -mcpu=cortex-a72 -O3 kernel.c -o kernel.elf