Re: Any plans to integrate just binutils‑gd b into GCC?

unlvsur unlvsur via Gcc-help <[email protected]> Thu, 23 Jul 2026 10:20:40 +0000
Newsgroups gmane.comp.gcc.help,gmane.comp.gnu.binutils
Message-ID <SJ1P223MB043553DAD443402C3CC8AA1AD6C02@SJ1P223MB0435.NAMP223.PROD.OUTLOOK.COM>
it is not a waste of time because i need to run cross compilers on every of these platforms. i use my surface laptop7 windows on arm laptop, x86_64 windows, linux, oculus quest 2 (vr), android phone, x86_64 waydroid android emulator, m4 mac mini. raspi. WebAssembly. windows95 etc. Sometimes also need to test loongarch and riscv.

Every of these platform needs a compiler and often two with wine. Way too many

clang is not N^2 because runtimes do not need to get rebuilt every time. we only compile it by once while gcc has to rebuild every of them every time which is N*N.

Get Outlook for Android<https://aka.ms/AAb9ysg>

________________________________
From: Arsen Arsenović <[email protected]>
Sent: Thursday, July 23, 2026 6:14:49 PM
To: unlvsur unlvsur <[email protected]>
Cc: Segher Boessenkool <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Subject: Re: Any plans to integrate just binutils‑gdb into GCC?

unlvsur unlvsur via Gcc-help <[email protected]> writes:

> The cross compiler approach (aka $target-gcc) ads another dimension which is mathematically a mess.
>
> For examples if you have N platforms, to build every possible combination,
> clang only has N combos (only needs the host). While gcc needs N^2
> (host*target). It just wastes computing resources to build each of them and it
> is a terrible mess. Just look at this. And this has been proven not only in
> theory but also in reality.

Having a compiler capable of generating code for a target does not
suffice to cross-compile to that target.

Indeed, LLVMs build system contains logic for building the runtime
libraries for other targets in much the same way as GCC does.

It is a waste of time to build all N^2 (or even N^3) combinations. So
don't do that.
--
Arsen Arsenović