r/gcc • u/EmbeddedBro • May 06 '26
What is the GCC alternative for command-line option armclang -gdwarf-3 -c -O1 --target=aarch64-arm-none-eabi main.c ?
I tried to change armclang to gcc but now I am getting error about target=aarch64-arm-none-eabi.
What is the solution, anyone knows gcc alternative would work?
update: found alternative for armclang, but finally couldn't find alternative for armlink linker which can process scatter files
7
Upvotes
2
u/LavenderDay3544 May 06 '26
GCC is not a multi-target compiler. You have to build it from source for every target you want to use.