libretro/RetroArch has 2,688,408 source lines of code out of 3,322,919 total lines across 10,015 files, counted from the master ref at commit 18d2e1df1d33 by the OctoCounts tokei engine on 2026-10-21. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
libretro/RetroArch: 2,688,408 code lines at commit 18d2e1df1d33, counted with tokei-14.0.0 on 2026-10-21. Saved result 21b2e01bbfd5a709d86faa3230d38628b47a54724b045f2a6c9914c4677fe4d3.
OctoCounts produced this report by resolving libretro/RetroArch to commit 18d2e1df1d33, 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.
This is a very large codebase by counted code lines. Code represents 80.9% of all lines, comments represent 10.4%, and the repository averages 268 code lines per file. C accounts for 41.9% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 1906 | 1435475 | 1126425 | 166045 | 143005 |
| C Header | 1879 | 1126814 | 946028 | 117761 | 63025 |
| GLSL | 4585 | 260215 | 228757 | 3402 | 28056 |
| C++ | 123 | 175145 | 135222 | 18198 | 21725 |
| C++ Header | 36 | 100338 | 79113 | 8819 | 12406 |
| Objective-C | 57 | 41803 | 33071 | 4644 | 4088 |
| Python | 181 | 35734 | 31426 | 1476 | 2832 |
| Bitbake | 41 | 22532 | 21975 | 213 | 344 |
| Makefile | 523 | 28568 | 20492 | 2357 | 5719 |
| Shell | 140 | 14451 | 10160 | 2852 | 1439 |
| XML | 46 | 10705 | 9890 | 145 | 670 |
| Visual Studio Project | 18 | 9271 | 9271 | 0 | 0 |
| CSS | 6 | 6862 | 6672 | 88 | 102 |
| JSON | 176 | 5168 | 5166 | 0 | 2 |
| JavaScript | 25 | 5636 | 4431 | 715 | 490 |
| GNU Style Assembly | 17 | 4922 | 3851 | 603 | 468 |
| Java | 17 | 5044 | 3589 | 803 | 652 |
| Happy | 1 | 3614 | 3436 | 0 | 178 |
| Swift | 4 | 1736 | 1274 | 203 | 259 |
| CMake | 14 | 1488 | 1187 | 104 | 197 |
| LD Script | 9 | 1304 | 987 | 168 | 149 |
| Visual Studio Solution | 15 | 899 | 887 | 0 | 12 |
| SVG | 9 | 837 | 828 | 5 | 4 |
| Metal Shading Language | 1 | 1090 | 782 | 157 | 151 |
| Forge Config | 16 | 1760 | 627 | 850 | 283 |
| Perl | 1 | 527 | 393 | 63 | 71 |
| HTML | 3 | 377 | 317 | 43 | 17 |
| YAML | 5 | 373 | 313 | 40 | 20 |
| Batch | 6 | 405 | 311 | 0 | 94 |
| Lua | 3 | 322 | 297 | 1 | 24 |
| Slang | 6 | 277 | 205 | 31 | 41 |
| Xcode Config | 10 | 313 | 199 | 73 | 41 |
| BASH | 4 | 238 | 147 | 61 | 30 |
| PowerShell | 1 | 134 | 126 | 1 | 7 |
| HLSL | 5 | 125 | 117 | 5 | 3 |
| Assembly | 2 | 149 | 113 | 29 | 7 |
| AsciiDoc | 2 | 134 | 102 | 6 | 26 |
| AWK | 4 | 85 | 69 | 13 | 3 |
| RPM Specfile | 1 | 82 | 64 | 7 | 11 |
| Autoconf | 5 | 80 | 59 | 13 | 8 |
| Templ | 1 | 22 | 22 | 0 | 0 |
| Dockerfile | 1 | 9 | 7 | 0 | 2 |
| Markdown | 74 | 12531 | 0 | 10622 | 1909 |
| Plain Text | 36 | 5325 | 0 | 4777 | 548 |
Top language (C 41.9%). Generated at .
libretro/RetroArch has 3,322,919 total lines, including 2,688,408 code lines, 345,393 comment lines, and 289,118 blank lines.
OctoCounts resolved the public GitHub repository to commit 18d2e1df1d33, 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 18d2e1df1d33 on 2026-10-21T03:43:39.765254933Z.
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,688,408 code lines across 44 languages, counted by tokei.