libretro/RetroArch has 2,454,876 source lines of code out of 3,057,374 total lines across 9,272 files, counted from the master ref at commit 1815302e85b0 by the OctoCounts tokei engine on 2026-10-12. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
libretro/RetroArch: 2,454,876 code lines at commit 1815302e85b0, counted with tokei-14.0.0 on 2026-10-12. Saved result f119826097454721ccde548acbb92d1601d18c7c7a051b7f0a7f46ee8e92b313.
OctoCounts produced this report by resolving libretro/RetroArch to commit 1815302e85b0, 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.3% of all lines, comments represent 10.7%, and the repository averages 265 code lines per file. C accounts for 40.4% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 1602 | 1285577 | 992667 | 157269 | 135641 |
| C Header | 1666 | 1038945 | 869936 | 109822 | 59187 |
| GLSL | 4579 | 259793 | 228370 | 3396 | 28027 |
| C++ | 122 | 174965 | 135086 | 18172 | 21707 |
| C++ Header | 36 | 100338 | 79113 | 8819 | 12406 |
| Objective-C | 41 | 36748 | 28376 | 4449 | 3923 |
| Python | 105 | 26536 | 22534 | 1441 | 2561 |
| Bitbake | 33 | 18692 | 18179 | 206 | 307 |
| Makefile | 445 | 24464 | 17384 | 2145 | 4935 |
| XML | 46 | 10700 | 9888 | 142 | 670 |
| Shell | 131 | 13881 | 9775 | 2733 | 1373 |
| Visual Studio Project | 17 | 8243 | 8243 | 0 | 0 |
| CSS | 6 | 6862 | 6672 | 88 | 102 |
| JavaScript | 24 | 5525 | 4336 | 706 | 483 |
| JSON | 172 | 4278 | 4276 | 0 | 2 |
| GNU Style Assembly | 17 | 4922 | 3851 | 603 | 468 |
| Java | 17 | 4995 | 3542 | 802 | 651 |
| 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 |
| SVG | 9 | 837 | 828 | 5 | 4 |
| Visual Studio Solution | 14 | 784 | 773 | 0 | 11 |
| Metal Shading Language | 1 | 1042 | 748 | 147 | 147 |
| Forge Config | 16 | 1757 | 627 | 848 | 282 |
| 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 | 311 | 198 | 72 | 41 |
| BASH | 4 | 238 | 147 | 61 | 30 |
| PowerShell | 1 | 134 | 126 | 1 | 7 |
| 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 |
| HLSL | 2 | 51 | 45 | 3 | 3 |
| Templ | 1 | 22 | 22 | 0 | 0 |
| Dockerfile | 1 | 9 | 7 | 0 | 2 |
| Markdown | 52 | 10456 | 0 | 8762 | 1694 |
| Plain Text | 36 | 5316 | 0 | 4768 | 548 |
Top language (C 40.4%). Generated at .
libretro/RetroArch has 3,057,374 total lines, including 2,454,876 code lines, 326,181 comment lines, and 276,317 blank lines.
OctoCounts resolved the public GitHub repository to commit 1815302e85b0, 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 1815302e85b0 on 2026-10-12T06:22:19.219652056Z.
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,454,876 code lines across 44 languages, counted by tokei.