[1] (similar talk) https://www.youtube.com/watch?v=mVbDzTM21BQ
the 3 giants are working together...
Even GCC developers (like I was ) don't really question it.
The only thing GCC buys you right now, at all, is slightly better performance (it varies depending on your benchmark) and support for a larger variety of odd embedded systems.
On the other hand, LLVM is very easy to modify, can be built as a library (as can clang), has a sane, well defined IR, etc.
Your reply certainly implied you thought GCC was fine along the same axises your parent said clang was better.
"But I hope that it is still allowed to say that GCC has made progress the past few years." You are talking to a guy who helped make some of this progress (for example, I helped build the tree-ssa project that brought a language independent middle IR and SSA optimizers to GCC). It's certainly made progress, but that progress had been fought about for the 5 years before that. At the same time, GCC lost good developers during these fights due to wanting to get stuff done and not deal with politics.
"Also, there's the license/freedom thingy, which might not interest you, but others do care about such things."
Actually, it interests me immensely. I helped with things like the libstdc++ exception, etc. Besides being a compiler guy, i'm an open source lawyer.
But in the end, I choose stuff based on technical merits first, freedom second. You are of course, welcome to do as you please.
No. I simply corrected a false statement regarding gcc. I did not compare it to clang at all. I have no illusions how gcc does compare to clang w.r.t. to code quality, modularity, etc. As I've said: it would be weird if it were otherwise. It's really not hard to beat gcc in that area.
> You are talking to a guy who helped make some of this progress
Thank you (no irony intended).
> Actually, it interests me immensely.
It may interest you, but as you say yourself:
> But in the end, I choose stuff based on technical merits first, freedom second
>You are of course, welcome to do as you please.
Will do, thanks.
Apologies for replying in-thread (I couldn't find contact in your profile). Would it be possible to ask you a few questions about a perhaps-novel compiler licensing question for an open source application we're developing (we're a commercial entity and can pay for your time)? If so you can reach me at the email in my profile.
But sometimes I wonder if the license doesn't play a role as well.
Of course, given the source, apply salt :-).
The last time I checked gcc still had better performance than CLang, but things might have changed since then.
* Modern modular design (everything is libraries) * Faster compile times * Nicer error messages
The modular design in particular is a good reason that might not be obvious at first. It lets you do things like debuggers, code formatters and static analysers in a much more sane and robust way than GCC's "no plugins, everything must be separate and flaky" way.