# gcc-mirror/gcc SLOC report

> gcc-mirror/gcc: 11,433,684 code lines at commit bb5c3bfcb28b, counted with tokei-15.0.0 on 2026-11-16. Saved result 684291b105dbbc0ab42929f2881bc6c5eb64242823b80ac25c45cf9c5eb3b3c9.

gcc-mirror/gcc has 11,433,684 source lines of code out of 18,813,596 total lines across 145,383 files, counted with tokei from the master ref at commit bb5c3bfcb28b on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving gcc-mirror/gcc to commit bb5c3bfcb28b, 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.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 94,836 | 4,780,330 | 3,113,061 | 1,041,781 | 625,488 |
| C++ | 12,788 | 4,341,047 | 3,056,035 | 728,308 | 556,704 |
| C Header | 5,058 | 1,277,777 | 870,987 | 240,538 | 166,252 |
| 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,128 | 1,349,037 | 728,661 | 358,539 | 261,837 |
| Go | 3,337 | 935,701 | 701,054 | 152,496 | 82,151 |
| FORTRAN Modern | 9,542 | 466,267 | 346,305 | 62,521 | 57,441 |
| Rust | 2,363 | 253,777 | 210,414 | 12,714 | 30,649 |
| Autoconf | 227 | 183,677 | 151,243 | 11,975 | 20,459 |
| XML | 3 | 148,263 | 148,237 | 17 | 9 |
| Module-Definition | 721 | 134,709 | 108,706 | 464 | 25,539 |
| GNU Style Assembly | 607 | 112,213 | 82,499 | 18,799 | 10,915 |
| M4 | 194 | 75,168 | 52,828 | 16,661 | 5,679 |
| C++ Header | 353 | 68,038 | 41,910 | 14,925 | 11,203 |
| Bitbake | 165 | 42,140 | 37,929 | 1,858 | 2,353 |
| Shell | 125 | 35,776 | 26,794 | 5,333 | 3,649 |
| COBOL | 592 | 29,606 | 23,872 | 3,408 | 2,326 |
| Python | 156 | 29,214 | 21,365 | 3,405 | 4,444 |
| 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,764 | 15,446 | 0 | 1,318 |
| 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,795 | 10,220 | 1,811 | 1,764 |
| YAML | 2 | 7,518 | 7,514 | 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,229 | 2,674 | 197 | 358 |
| Pan | 4 | 2,924 | 2,232 | 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 | 88 | 329 | 296 | 0 | 33 |
| 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 | 496 | 579,145 | 0 | 519,975 | 59,170 |
| Plain Text | 1,016 | 522,347 | 0 | 509,331 | 13,016 |

Top language: C 27.2%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/gcc-mirror/gcc/commit/bb5c3bfcb28b423544676b30df5a3bc97e91c41f?reportId=684291b105dbbc0ab42929f2881bc6c5eb64242823b80ac25c45cf9c5eb3b3c9&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/bb5c3bfcb28b423544676b30df5a3bc97e91c41f?reportId=684291b105dbbc0ab42929f2881bc6c5eb64242823b80ac25c45cf9c5eb3b3c9&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,433,684 lines of code, plus 4,865,630 comment lines and 2,514,282 blank lines, for 18,813,596 total lines at commit bb5c3bfcb28b on November 16, 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 bb5c3bfcb28b, 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 bb5c3bfcb28b on November 16, 2026.

## Similar repository reports

- [DeusData/codebase-memory-mcp](https://octocounts.com/github/DeusData/codebase-memory-mcp) — C, 14,326,096 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,908,192 code lines
- [gnutools/binutils-gdb](https://octocounts.com/github/gnutools/binutils-gdb) — C, 7,011,231 code lines
- [TelegramMessenger/Telegram-iOS](https://octocounts.com/github/TelegramMessenger/Telegram-iOS) — C, 6,741,519 code lines
- [openbsd/src](https://octocounts.com/github/openbsd/src) — C, 20,711,629 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)
- [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)
