# libretro/RetroArch SLOC report

> libretro/RetroArch: 2,829,492 code lines at commit ea782bddfced, counted with tokei-15.0.0 on 2026-11-16. Saved result c41d901a7cba63bc2b611ab9a0d14f15c15d70e43e5c1ea6b3683d713f507c7a.

libretro/RetroArch has 2,829,492 source lines of code out of 3,456,531 total lines across 6,664 files, counted with tokei from the master ref at commit ea782bddfced on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving libretro/RetroArch to commit ea782bddfced, 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

libretro/RetroArch: 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 81.9% of all lines, comments represent 10.5%, and the repository averages 425 code lines per file. C accounts for 53.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 2,570 | 1,868,298 | 1,512,164 | 193,077 | 163,057 |
| C Header | 2,204 | 1,204,382 | 1,019,527 | 121,882 | 62,973 |
| C++ Header | 16 | 88,308 | 70,001 | 7,284 | 11,023 |
| Python | 304 | 54,719 | 48,866 | 1,889 | 3,964 |
| Objective-C | 68 | 44,644 | 35,818 | 4,713 | 4,113 |
| Bitbake | 72 | 28,075 | 27,480 | 234 | 361 |
| Makefile | 693 | 37,948 | 27,463 | 3,014 | 7,471 |
| C++ | 33 | 30,198 | 23,994 | 2,081 | 4,123 |
| Shell | 145 | 15,780 | 11,183 | 3,134 | 1,463 |
| XML | 48 | 10,719 | 9,902 | 147 | 670 |
| Visual Studio Project | 18 | 9,413 | 9,413 | 0 | 0 |
| CSS | 6 | 6,862 | 6,672 | 88 | 102 |
| Java | 22 | 6,618 | 4,845 | 998 | 775 |
| JavaScript | 25 | 5,636 | 4,431 | 715 | 490 |
| GNU Style Assembly | 18 | 5,270 | 4,221 | 584 | 465 |
| JSON | 144 | 2,943 | 2,941 | 0 | 2 |
| GLSL | 72 | 3,097 | 2,517 | 257 | 323 |
| Swift | 3 | 1,664 | 1,214 | 194 | 256 |
| LD Script | 9 | 1,304 | 987 | 168 | 149 |
| Visual Studio Solution | 16 | 950 | 937 | 0 | 13 |
| Metal Shading Language | 2 | 1,213 | 900 | 162 | 151 |
| SVG | 9 | 837 | 828 | 5 | 4 |
| Forge Config | 16 | 1,767 | 627 | 855 | 285 |
| Perl | 1 | 527 | 393 | 63 | 71 |
| HTML | 3 | 377 | 317 | 43 | 17 |
| Batch | 6 | 405 | 311 | 0 | 94 |
| Lua | 2 | 316 | 293 | 3 | 20 |
| YAML | 3 | 225 | 223 | 0 | 2 |
| Slang | 7 | 293 | 221 | 31 | 41 |
| Xcode Config | 10 | 310 | 195 | 74 | 41 |
| PowerShell | 1 | 134 | 126 | 1 | 7 |
| AWK | 7 | 142 | 118 | 21 | 3 |
| AsciiDoc | 1 | 123 | 96 | 3 | 24 |
| HLSL | 3 | 74 | 72 | 2 | 0 |
| RPM Specfile | 1 | 82 | 64 | 7 | 11 |
| Assembly | 1 | 89 | 58 | 24 | 7 |
| Autoconf | 1 | 39 | 31 | 8 | 0 |
| Templ | 1 | 22 | 22 | 0 | 0 |
| CMake | 1 | 25 | 19 | 0 | 6 |
| Snakemake | 1 | 8 | 2 | 6 | 0 |
| Markdown | 70 | 12,528 | 0 | 10,818 | 1,710 |
| Plain Text | 31 | 10,167 | 0 | 9,805 | 362 |

Top language: C 53.4%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/libretro/RetroArch/commit/ea782bddfced9e218bce11f54ab74eeebdab9bd6?reportId=c41d901a7cba63bc2b611ab9a0d14f15c15d70e43e5c1ea6b3683d713f507c7a&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/libretro/RetroArch/commit/ea782bddfced9e218bce11f54ab74eeebdab9bd6?reportId=c41d901a7cba63bc2b611ab9a0d14f15c15d70e43e5c1ea6b3683d713f507c7a&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 libretro/RetroArch have?

libretro/RetroArch has 2,829,492 lines of code, plus 362,390 comment lines and 264,649 blank lines, for 3,456,531 total lines at commit ea782bddfced on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the libretro/RetroArch line count measured?

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

### What commit was counted for libretro/RetroArch?

This OctoCounts report was generated from master at commit ea782bddfced on November 16, 2026.

## Similar repository reports

- [balloonwj/flamingo](https://octocounts.com/github/balloonwj/flamingo) — C, 2,869,108 code lines
- [chrissotraidis/peonpad](https://octocounts.com/github/chrissotraidis/peonpad) — C, 2,658,349 code lines
- [wolfSSL/wolfssl](https://octocounts.com/github/wolfSSL/wolfssl) — C, 3,394,825 code lines
- [alenichev/openbsd-kernel](https://octocounts.com/github/alenichev/openbsd-kernel) — C, 2,183,806 code lines
- [tsirysndr/rockboxd](https://octocounts.com/github/tsirysndr/rockboxd) — C, 2,103,426 code lines
- [zephyrproject-rtos/zephyr](https://octocounts.com/github/zephyrproject-rtos/zephyr) — C, 3,807,176 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)
- [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)
