# gcc-mirror/gcc SLOC report

> As of 2026-10-07 (commit baea2a0be30d), gcc-mirror/gcc contains 18,618,362 total lines: 11,327,854 code, 4,808,055 comments, 2,482,453 blank, across 144,097 files in 60 languages (top: C 27.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

gcc-mirror/gcc has 11,327,854 source lines of code out of 18,618,362 total lines across 144,097 files, counted from the master ref at commit baea2a0be30d by the OctoCounts tokei engine on 2026-10-07. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving gcc-mirror/gcc to commit baea2a0be30d, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

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

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 93,883 | 4,729,173 | 3,079,550 | 1,030,952 | 618,671 |
| C++ | 12,738 | 4,308,159 | 3,029,925 | 725,027 | 553,207 |
| C Header | 5,013 | 1,272,925 | 869,251 | 238,548 | 165,126 |
| PO File | 48 | 2,120,575 | 782,694 | 925,637 | 412,244 |
| D | 5,428 | 1,052,841 | 750,890 | 178,716 | 123,235 |
| Ada | 5,110 | 1,348,714 | 728,445 | 358,505 | 261,764 |
| Go | 3,337 | 935,701 | 701,054 | 152,496 | 82,151 |
| FORTRAN Modern | 9,453 | 461,559 | 342,777 | 61,826 | 56,956 |
| Rust | 2,239 | 250,081 | 207,583 | 12,550 | 29,948 |
| Autoconf | 226 | 183,506 | 150,966 | 12,059 | 20,481 |
| XML | 3 | 148,263 | 148,237 | 17 | 9 |
| Module-Definition | 718 | 134,037 | 108,161 | 464 | 25,412 |

Top language (C 27.2%). Generated at 2026-10-07T20:18:29.893148304+00:00. Canonical report: https://octocounts.com/github/gcc-mirror/gcc

## Reproduce this report

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

## Report FAQ

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

gcc-mirror/gcc has 18,618,362 total lines, including 11,327,854 code lines, 4,808,055 comment lines, and 2,482,453 blank lines.

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

OctoCounts resolved the public GitHub repository to commit baea2a0be30d, 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 baea2a0be30d on 2026-10-07T20:18:29.893148304+00:00.

## Similar repository reports

- [DeusData/codebase-memory-mcp](https://octocounts.com/github/DeusData/codebase-memory-mcp) — C, 13,656,984 code lines
- [VirtualBox/virtualbox](https://octocounts.com/github/VirtualBox/virtualbox) — C, 16,045,668 code lines
- [reactos/reactos](https://octocounts.com/github/reactos/reactos) — C, 7,775,276 code lines
- [gnutools/binutils-gdb](https://octocounts.com/github/gnutools/binutils-gdb) — C, 7,014,846 code lines
- [Maccraft123/linux-duet](https://octocounts.com/github/Maccraft123/linux-duet) — C, 21,512,207 code lines
- [wireshark/wireshark](https://octocounts.com/github/wireshark/wireshark) — C, 5,711,814 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)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [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)
