GCC vs LLVM

The cluster centers on debates comparing GCC and LLVM/Clang compilers, focusing on GPL licensing as a catalyst for LLVM's creation, its superior modularity, corporate support from companies like Apple and Google, and GCC's ongoing relevance versus LLVM's rise.

πŸ“‰ Falling 0.5x Open Source
3,074
Comments
20
Years Active
5
Top Authors
#5130
Topic ID

Activity Over Time

2007
2
2008
9
2009
37
2010
126
2011
83
2012
125
2013
188
2014
209
2015
283
2016
124
2017
161
2018
157
2019
174
2020
267
2021
310
2022
287
2023
188
2024
114
2025
223
2026
7

Keywords

e.g CLI improvements.html undeadly.org lists.gnu AMD GHC XL PyPy FSF gcc llvm clang compiler gpl compilers apple licensing rms proprietary

Sample Comments

mikepurvis β€’ Nov 8, 2024 β€’ View on HN

Absolutely. LLVM exists because GCC is GPL; that's a feature not a bug.

donarb β€’ Jan 7, 2018 β€’ View on HN

Except llvm/clang, the future of compilers, was in response to GCC's GPL licensing.

WhitneyLand β€’ Jan 19, 2017 β€’ View on HN

How important was it to get support into gcc? llvm wouldn't have been enough?

dman β€’ Jul 21, 2015 β€’ View on HN

I dont know if licensing was the only reason why GCC missed out on this market. Using parts of the compiler as a library to aid tool building, refactoring and analysis is one of those great ideas that seems obvious in retrospect. To the credit of LLVM's early authors they had a larger vision of what a compiler ought to be than other compilers at the time. I dont recall gcc or any of the other commercial compilers having this expansionary vision of a compiler stack back in the 2000s. Once LL

forgottenpaswrd β€’ Mar 19, 2012 β€’ View on HN

Why?We already have llvm as a c++ monster(hundreds or thousands of MBytes on my mac), witch is modular, and have a more permissive license.So you are going to risk the only advantages of gcc,(written in c and relatively small and stability), so you could copy the new kid on the block?If you are going to copy them, copy the more permissive license. It will give commercial companies like Apple the option to improve your software like they do with llvm(Apple hired llvm creator).

talldayo β€’ Nov 8, 2024 β€’ View on HN

I don't even understand how you can point to LLVM as an example of this failing. GCC is still alive and well, and perfectly suited for the task it was always intended to fill. People that wanted a commercial C compiler always had the option to purchase one at-cost, GCC was intended as an alternative to that process, not the alternative. It may be hard to remember, but less than 50 years ago squabbles over compiler licensing was what most developers had to deal with.Respecti

dralley β€’ Mar 9, 2021 β€’ View on HN

Maybe you should be outraged by GCC's deliberate sandbagging and less deliberate stagnation that allowed LLVM to swoop in and be a legitimately more useful (if not "better") compiler.Stallman himself was largely responsible for GCC not exposing intermediate representation for analysis.https://www.re

tentonova β€’ Dec 30, 2009 β€’ View on HN

Compiler licensing is not enough to supersede the BSDs' pragmatism. We've been using GCC for years.If you've had to maintain GCC for your platform -- or worse yet, tried to add even small improvements -- you'd understand why momentum is building to replace it.Not that switching to GPLv3 helped GCC any. That's one reason among many that Apple stopped GCC development and put their weight behind LLVM.

CalChris β€’ Nov 30, 2025 β€’ View on HN

GCC vs LLVM. It isn’t the license.

pascal_cuoq β€’ Sep 16, 2013 β€’ View on HN

Several engineers working on LLVM or Clang are paid by Google or Apple. The reasons these two companies are not funding GCC are political, not technical, otherwise I bet they would gladly fund both efforts, if only for the healthy emulation.