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.
As of 2026-10-21 (commit 18d2e1df1d33), libretro/RetroArch contains 3,322,919 total lines: 2,688,408 code, 345,393 comments, 289,118 blank, across 10,015 files in 44 languages (top: C 41.9%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
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 |
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.765254933+00:00.
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 12 languages, counted by tokei.