News for hackers. Stuff that matters.
Re:Clang is better than GCC by pizlonator on Sunday November 27, 2022 @08:24PM (#33768806)
I wonder if GCC still has a codegen edge over clang.

I know it used to. No idea if it’s still the case.

Re:Clang is better than GCC by aew4ytasghe5 on Sunday November 27, 2022 @09:06PM (#33769066)
For x86 in certain cases, I think gcc produces better code still. But x86_64 / aarch64 looks different, and there I would assume the gap between gcc/clang is not big.

Would be cool to hear more about this.

Re:Clang is better than GCC by sanxiyn on Monday November 28, 2022 @01:28AM (#33770390)
I think GCC had an edge up to 2020 or so, mainly thanks to its better inliner. I should check this again now LLVM's inliner rewrite landed.