News for hackers. Stuff that matters.
Re:Clang is better than GCC by bombcar on Sunday November 27, 2022 @07:59PM (#33768646)
And GCC targets fifty billion different instruction sets.
Re:Clang is better than GCC by 77pt77 on Sunday November 27, 2022 @08:08PM (#33768702)
doesn't clang also support many backends?
Re:Clang is better than GCC by compiler-guy on Sunday November 27, 2022 @08:17PM (#33768762)
Many, but not as many as gcc. Gcc being the only game in town for about thirty years gave it a massive head start, and gcc existed during an explosion in different isas and architectures. Every obscure processor in the world seems to have a gcc backend.

Clang much less so. But clang supports all the modern “important” isas, so as a practical matter, it doesn’t matter that much for everyday use.

Re:Clang is better than GCC by skissane on Sunday November 27, 2022 @09:02PM (#33769047)
My impression is, GCC development team is more open to mainlining support for obscure architectures, Clang/LLVM require stronger evidence of demand and maintenance commitment.

Of course, 99.9% of people don't use any obscure architecture, so that's irrelevant to them.

Re:Clang is better than GCC by cozzyd on Monday November 28, 2022 @12:46PM (#33776792)
due to clang's license, some vendors like to release their own proprietary version of clang for an architecture (though in cases I'm aware of, parallel unofficial open source support exists as well, though I don't know if this is always true).