This page compares the source lines of code (SLOC) of gcc-mirror/gcc and llvm/llvm-project using cached OctoCounts reports. Code size is not code quality: a larger count only means more source material, not a better or worse project.
As of 2026-09-06, gcc-mirror/gcc contains 18,510,299 total lines (11,245,820 code) across 143,157 files, while llvm/llvm-project contains 11,381,288 total lines (8,190,133 code) across 36,292 files as of 2026-09-07. gcc-mirror/gcc is about 1.4x the size of llvm/llvm-project by code lines. Code size is not code quality: a larger count only means more source material, not a better or worse project.
| Metric | gcc-mirror/gcc | llvm/llvm-project |
|---|---|---|
| Files | 143,157 | 36,292 |
| Total lines | 18,510,299 | 11,381,288 |
| Code lines | 11,245,820 | 8,190,133 |
| Comment lines | 4,794,940 | 1,780,496 |
| Blank lines | 2,469,539 | 1,410,659 |
| Languages counted | 12 | 12 |
Top languages in gcc-mirror/gcc: C (27.2% of code), C++ (26.8% of code), C Header (7.7% of code). Top languages in llvm/llvm-project: C++ (67.2% of code), C Header (20.8% of code), C (2.1% of code). C, C++, C Header appear in both top language lists; PO File, D appear only in gcc-mirror/gcc's top languages; C++ Header, Python appear only in llvm/llvm-project's top languages.
Methodology: both counts come from cached OctoCounts reports generated with tokei. gcc-mirror/gcc was counted at ref fc0a5c0d04a55429868594403f96608f7003aed4 (commit fc0a5c0d04a5) on 2026-09-06; llvm/llvm-project was counted at ref main (commit 7a67a1ab6f3f) on 2026-09-07. See the counting methodology for ignored directories and analysis options.
Evidence and next steps:
Note: code size is not code quality. OctoCounts only reports reproducible line counts and makes no claim that either project is better.
gcc-mirror/gcc has more code: 11,245,820 code lines versus 8,190,133 for llvm/llvm-project, about 1.4x as much, based on cached OctoCounts reports as of 2026-09-07.
Not necessarily. SLOC measures size, not complexity, quality, or maintainability. A larger codebase can mean more features, more generated or vendored code, more verbose language idioms, or more tests — none of which imply the code is harder to work with. Use SLOC to gauge the scale of what you'd be reading or maintaining, not as a quality signal for gcc-mirror/gcc, llvm/llvm-project, or any repository.
Methodology: both counts come from cached OctoCounts reports generated with tokei. gcc-mirror/gcc was counted at ref fc0a5c0d04a55429868594403f96608f7003aed4 (commit fc0a5c0d04a5) on 2026-09-06; llvm/llvm-project was counted at ref main (commit 7a67a1ab6f3f) on 2026-09-07. See the counting methodology for ignored directories and analysis options.
Yes. This page shows the default branch for each repository. Use the interactive comparison tool to pick any public GitHub repository, branch, tag, or commit SHA for both sides and get a fresh side-by-side report.