RE: GCC's thin lto PLEASE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Try to build it with llvm/clang. It would be ridiculously slow + oom.

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows

________________________________
From: NightStrike <nightstrike@xxxxxxxxx>
Sent: Monday, March 25, 2024 3:01:00 AM
To: sotrdg sotrdg <euloanty@xxxxxxxx>
Cc: gcc-help <gcc-help@xxxxxxxxxxx>
Subject: Re: GCC's thin lto PLEASE



On Sun, Mar 24, 2024, 22:18 sotrdg sotrdg via Gcc-help <gcc-help@xxxxxxxxxxx<mailto:gcc-help@xxxxxxxxxxx>> wrote:
gosh. GCC compiles so slow compared to clang with thin lto for C++, since the translation unit tends to be big, without thin lto, it is extremely hard to even get code compile nowadays due to its slowness.


Did you try the option "-fno-fat-lto-objects" ?

Also, to get significant speedup, use -flto=auto. That will run parallel jobs.

Read https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html for more fun. The LTO section is extensive.





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux