Host-Tuned GCC for Faster Compilation

21 points by abareplace


symgryph

Is this worth doing on a normal Linux system?

shapr

I've been doing native builds of my server's NixOS, but I don't have a good way to test the results across the entire OS. Does anyone have suggestions?

I did notice that running the entire OS as native skylake plus avx512 decreased build time in following builds.

JoachimSchipper

Although I’m inclined to believe that compiling gxx itself with maximum optimization can improve performance, this article also just builds a compiler with a different configuration and: e.g. distribution gcc compiles with --enable-default-ssp, which causes distribution gcc to include an extra security feature (plausibly, at some cost in compile time). There are other such flags.

(Indeed, the performance improvement is larger than we usually see for just tweaking compiler flags.)