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.
libretro/RetroArch: 2,829,492 code lines at commit ea782bddfced, counted with tokei-15.0.0 on 2026-11-16. Saved result c41d901a7cba63bc2b611ab9a0d14f15c15d70e43e5c1ea6b3683d713f507c7a.
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.
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 | 2570 | 1868298 | 1512164 | 193077 | 163057 |
| C Header | 2204 | 1204382 | 1019527 | 121882 | 62973 |
| C++ Header | 16 | 88308 | 70001 | 7284 | 11023 |
| Python | 304 | 54719 | 48866 | 1889 | 3964 |
| Objective-C | 68 | 44644 | 35818 | 4713 | 4113 |
| Bitbake | 72 | 28075 | 27480 | 234 | 361 |
| Makefile | 693 | 37948 | 27463 | 3014 | 7471 |
| C++ | 33 | 30198 | 23994 | 2081 | 4123 |
| Shell | 145 | 15780 | 11183 | 3134 | 1463 |
| XML | 48 | 10719 | 9902 | 147 | 670 |
| Visual Studio Project | 18 | 9413 | 9413 | 0 | 0 |
| CSS | 6 | 6862 | 6672 | 88 | 102 |
| Java | 22 | 6618 | 4845 | 998 | 775 |
| JavaScript | 25 | 5636 | 4431 | 715 | 490 |
| GNU Style Assembly | 18 | 5270 | 4221 | 584 | 465 |
| JSON | 144 | 2943 | 2941 | 0 | 2 |
| GLSL | 72 | 3097 | 2517 | 257 | 323 |
| Swift | 3 | 1664 | 1214 | 194 | 256 |
| LD Script | 9 | 1304 | 987 | 168 | 149 |
| Visual Studio Solution | 16 | 950 | 937 | 0 | 13 |
| Metal Shading Language | 2 | 1213 | 900 | 162 | 151 |
| SVG | 9 | 837 | 828 | 5 | 4 |
| Forge Config | 16 | 1767 | 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 | 12528 | 0 | 10818 | 1710 |
| Plain Text | 31 | 10167 | 0 | 9805 | 362 |
Top language: C 53.4%. Generated on .
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.
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.
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.
This OctoCounts report was generated from master at commit ea782bddfced on November 16, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for libretro/RetroArch on this page — 2,829,492 code lines across 42 languages, counted by tokei.