do KDE Qt guys prefer GCC or Clang? (n.b. this is a fact question, not an opinion question. i used to use GCC for a cxx project that was incompatible with Clang and presumably if the lead developer had chosen Clang first we would have used that)
Announcement
Collapse
No announcement yet.
Clang-Based Tool Makes It Easy To Show Inefficient Qt Coding Mistakes
Collapse
X
-
Originally posted by mmstick View PostLLVM compiler plugins are a huge incentive for language tool authors to use LLVM. GCC has always been hostile towards compiler plugins due to fears over the possibility of proprietary compiler plugins.
I'd also like to point out that LLVM has a slightly easier API to work with for plugins, but not significantly better enough to account for the difference in developer choice.
- Likes 3
Comment
-
Originally posted by tildearrow View PostI never catch number typos. Though I was kind of confused after reading "2017".
Also, why is GCC unsuitable for this kind of projects? Why Clang? (If it causes havoc, I'm sorry)
Can GCC's infrastructure be used to create static-analysis tooling that easily ? I don't know, and honestly I didn't even investigate. When I started developing clazy the clang-based tooling apps were popping up like mushrooms, there were many tutorials and I got running in no time.
It wasn't a religious decision, whatever got the job done was fine. I don't have a grudge against GNU.
Btw, clazy can run on Windows against msvc runtime, I don't think gcc can do that. And on macOS Clang is more popular too.
Originally posted by eigenlambda View Postdo KDE Qt guys prefer GCC or Clang? (n.b. this is a fact question, not an opinion question. i used to use GCC for a cxx project that was incompatible with Clang and presumably if the lead developer had chosen Clang first we would have used that)
I would say most people don't care and just use the system's default (gcc on Linux / Clang on macOS). However, the people who do care about compilers are usually fans of Clang, I've haven't seen many people passionate about gcc.
- Likes 3
Comment
-
Originally posted by cj.wijtmans View Post
i was wonderin the same thing why cant it be done with gcc. GCC doesnt have the infra probably?
LLVM/CLang was designed from the beginning to be a suite of tools essily incorporated into other software. Much of the tech is exposed in libraries easily integrated into other software. If you spend some time on the various LLVM related sites you will get an idea as to how successful this has made the world of CLang and LLVM. Parts of the core project are used by hundreds of sub projects, reseach efforts and the like.
Basically GCC was screwed up by extremely short sighted, anti business people at the Free Software Foundation. They have a very perplexing definition of "FREE". GCC was in effect designed to be something other than Free. It is or certainly was a monolithic piece of trash that defied modern software development practices.
Comment
-
I don't think there's a precise answer to your question.
I would say most people don't care and just use the system's default (gcc on Linux / Clang on macOS). However, the people who do care about compilers are usually fans of Clang, I've haven't seen many people passionate about gcc.
The problem i see with GCC is that you have a very talented compiler development team with one hand tied behind their backs by the FSF. That dynamic stunted GCC's development for years. Parallel to this GPL evolved from something companies could live with to something absolutely horrible with GPL3. Actually GPL3 turned off a lot of freelance open source developers working on their own dime.
In the end im not sure people get passionate about a developers tool. Im not even sure id want to be around such people if they existed. What people see in LLVM is a large collection of very nice tools that are easy to use and easy to integrate. There really is nothing like it these days.
Comment
-
Originally posted by wizard69 View PostThere are lots of opinions but in the end it comes down to GCC not being designed from the start to do what the suite of tools developed under the LLVM banner do. The reason GCC was in this state was mangerial and certainly doesnt reflect upon GCC's development team.
While im not sure about the above, im pretty sure interest in LLVM is driven by technical values and freedom one doesnt get in GCC / GPL land.
The problem i see with GCC is that you have a very talented compiler development team with one hand tied behind their backs by the FSF. That dynamic stunted GCC's development for years. Parallel to this GPL evolved from something companies could live with to something absolutely horrible with GPL3. Actually GPL3 turned off a lot of freelance open source developers working on their own dime.
- Likes 1
Comment
-
Originally posted by wizard69 View PostThere are lots of opinions but in the end it comes down to GCC not being designed from the start to do what the suite of tools developed under the LLVM banner do. The reason GCC was in this state was mangerial and certainly doesnt reflect upon GCC's development team.
While im not sure about the above, im pretty sure interest in LLVM is driven by technical values and freedom one doesnt get in GCC / GPL land.
- Likes 3
Comment
-
Originally posted by bregma View Post
GCC has supported plugins since version 4.5. Most of the hostility is on the part of potential contributors because GCC is GPL-licensed software, and LLVM is BSD-licensed software. Also LLVM gets Big Money support from the likes of Apple and Google, and that kind of lubricant makes buying the opinions of significant portions of the open source community easier.
I'd also like to point out that LLVM has a slightly easier API to work with for plugins, but not significantly better enough to account for the difference in developer choice.
to create a plugin that does static analysis with GCC.
Comment
-
Originally posted by carewolf View PostIt is driven by a cleaner better structure, and a large wealthy company. Don't put all the other politically loaded nonsense into it.
Comment
Comment