# gcc-mirror/gcc SLOC report

> gcc-mirror/gcc: 11,443,129 code lines at commit fb412af72edf, counted with tokei-15.0.0 on 2026-11-24. Saved result 6aa8dfe8548796f9e1885096c5cb42dc72b2e272c3194eac5618a3ccb6176c5a.

Source: [gcc-mirror/gcc on GitHub](https://github.com/gcc-mirror/gcc) · counted commit [fb412af72edf](https://github.com/gcc-mirror/gcc/tree/fb412af72edf69c8437bce09685d0d636db9d31e)

gcc-mirror/gcc has 11,443,129 source lines of code out of 18,835,070 total lines across 145,699 files, counted with tokei from the master ref at commit fb412af72edf on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving gcc-mirror/gcc to commit fb412af72edf, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

gcc-mirror/gcc: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 60.8% of all lines, comments represent 25.9%, and the repository averages 79 code lines per file. C accounts for 27.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 95,104 | 4,800,669 | 3,122,620 | 1,049,752 | 628,297 |
| C++ | 12,792 | 4,347,446 | 3,060,690 | 729,380 | 557,376 |
| C Header | 5,062 | 1,269,751 | 864,098 | 240,566 | 165,087 |
| PO File | 50 | 2,214,594 | 819,685 | 963,961 | 430,948 |
| D | 5,428 | 1,052,841 | 750,890 | 178,716 | 123,235 |
| Ada | 5,133 | 1,349,128 | 728,723 | 358,549 | 261,856 |
| Go | 3,337 | 935,701 | 701,054 | 152,496 | 82,151 |
| FORTRAN Modern | 9,570 | 467,720 | 347,486 | 62,697 | 57,537 |
| Rust | 2,363 | 253,777 | 210,414 | 12,714 | 30,649 |
| Autoconf | 226 | 183,577 | 151,215 | 11,923 | 20,439 |
| XML | 3 | 148,263 | 148,237 | 17 | 9 |
| Module-Definition | 722 | 135,349 | 109,298 | 464 | 25,587 |
| GNU Style Assembly | 607 | 112,228 | 82,497 | 18,812 | 10,919 |
| M4 | 194 | 75,170 | 52,828 | 16,663 | 5,679 |
| C++ Header | 353 | 68,038 | 41,910 | 14,925 | 11,203 |
| Bitbake | 165 | 42,144 | 37,933 | 1,858 | 2,353 |
| Shell | 125 | 35,776 | 26,794 | 5,333 | 3,649 |
| COBOL | 596 | 29,689 | 23,934 | 3,429 | 2,326 |
| Python | 157 | 29,379 | 21,504 | 3,415 | 4,460 |
| Objective-C | 551 | 26,070 | 17,594 | 3,436 | 5,040 |
| Visual Studio Project | 36 | 17,428 | 17,428 | 0 | 0 |
| Alex | 215 | 18,598 | 15,988 | 0 | 2,610 |
| Happy | 3 | 16,847 | 15,528 | 0 | 1,319 |
| FORTRAN Legacy | 585 | 23,734 | 14,276 | 7,561 | 1,897 |
| Objective-C++ | 386 | 18,153 | 12,182 | 2,422 | 3,549 |
| Automake | 68 | 13,807 | 10,229 | 1,812 | 1,766 |
| YAML | 2 | 7,526 | 7,522 | 3 | 1 |
| JSON | 36 | 7,214 | 6,714 | 0 | 500 |
| AWK | 31 | 7,232 | 5,461 | 990 | 781 |
| Perl | 20 | 4,855 | 3,226 | 1,032 | 597 |
| Lex | 3 | 3,238 | 2,680 | 200 | 358 |
| Pan | 4 | 2,925 | 2,233 | 340 | 352 |
| Assembly | 4 | 2,508 | 1,509 | 458 | 541 |
| Pascal | 4 | 1,443 | 1,016 | 216 | 211 |
| C# | 9 | 1,615 | 879 | 506 | 230 |
| Visual Studio Solution | 8 | 856 | 849 | 0 | 7 |
| Makefile | 43 | 1,386 | 847 | 220 | 319 |
| Templ | 10 | 830 | 769 | 0 | 61 |
| BASH | 9 | 1,059 | 720 | 199 | 140 |
| HTML | 4 | 591 | 571 | 19 | 1 |
| RPM Specfile | 5 | 496 | 415 | 0 | 81 |
| TOML | 19 | 413 | 307 | 50 | 56 |
| Haskell | 89 | 334 | 300 | 0 | 34 |
| OCaml | 1 | 358 | 285 | 37 | 36 |
| CMake | 3 | 382 | 284 | 44 | 54 |
| Dockerfile | 20 | 323 | 275 | 9 | 39 |
| Emacs Lisp | 2 | 352 | 253 | 53 | 46 |
| Vim Script | 4 | 314 | 248 | 35 | 31 |
| Poke | 2 | 514 | 244 | 210 | 60 |
| MSBuild | 2 | 184 | 172 | 8 | 4 |
| LD Script | 1 | 192 | 132 | 32 | 28 |
| SWIG | 10 | 111 | 75 | 16 | 20 |
| ReStructuredText | 1 | 117 | 74 | 0 | 43 |
| GDB Script | 2 | 18 | 15 | 1 | 2 |
| Forge Config | 3 | 11 | 9 | 0 | 2 |
| Dream Maker | 1 | 8 | 5 | 0 | 3 |
| Batch | 2 | 4 | 4 | 0 | 0 |
| CSS | 1 | 1 | 1 | 0 | 0 |
| Markdown | 497 | 579,436 | 0 | 520,268 | 59,168 |
| Plain Text | 1,016 | 522,347 | 0 | 509,331 | 13,016 |

Top language: C 27.3%. Generated on November 24, 2026. Canonical report: https://octocounts.com/github/gcc-mirror/gcc/commit/fb412af72edf69c8437bce09685d0d636db9d31e?reportId=6aa8dfe8548796f9e1885096c5cb42dc72b2e272c3194eac5618a3ccb6176c5a&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/gcc-mirror/gcc/commit/fb412af72edf69c8437bce09685d0d636db9d31e?reportId=6aa8dfe8548796f9e1885096c5cb42dc72b2e272c3194eac5618a3ccb6176c5a&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does gcc-mirror/gcc have?

gcc-mirror/gcc has 11,443,129 lines of code, plus 4,875,178 comment lines and 2,516,763 blank lines, for 18,835,070 total lines at commit fb412af72edf on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the gcc-mirror/gcc line count measured?

OctoCounts resolved the public GitHub repository to commit fb412af72edf, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for gcc-mirror/gcc?

This OctoCounts report was generated from master at commit fb412af72edf on November 24, 2026.

## Similar repository reports

- [LiberNT/LiberNT](https://octocounts.com/github/LiberNT/LiberNT) — C, 10,931,649 code lines
- [DeusData/codebase-memory-mcp](https://octocounts.com/github/DeusData/codebase-memory-mcp) — C, 14,361,560 code lines
- [VirtualBox/virtualbox](https://octocounts.com/github/VirtualBox/virtualbox) — C, 16,046,794 code lines
- [reactos/reactos](https://octocounts.com/github/reactos/reactos) — C, 7,917,837 code lines
- [gnutools/binutils-gdb](https://octocounts.com/github/gnutools/binutils-gdb) — C, 7,014,976 code lines
- [TelegramMessenger/Telegram-iOS](https://octocounts.com/github/TelegramMessenger/Telegram-iOS) — C, 6,741,519 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [GCC vs LLVM](https://octocounts.com/compare/gcc-vs-llvm)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
