# libretro/RetroArch SLOC report

> libretro/RetroArch: 2,454,876 code lines at commit 1815302e85b0, counted with tokei-14.0.0 on 2026-10-12. Saved result f119826097454721ccde548acbb92d1601d18c7c7a051b7f0a7f46ee8e92b313.

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.

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.

## Repository size insights

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 | 1,602 | 1,285,577 | 992,667 | 157,269 | 135,641 |
| C Header | 1,666 | 1,038,945 | 869,936 | 109,822 | 59,187 |
| GLSL | 4,579 | 259,793 | 228,370 | 3,396 | 28,027 |
| C++ | 122 | 174,965 | 135,086 | 18,172 | 21,707 |
| C++ Header | 36 | 100,338 | 79,113 | 8,819 | 12,406 |
| Objective-C | 41 | 36,748 | 28,376 | 4,449 | 3,923 |
| Python | 105 | 26,536 | 22,534 | 1,441 | 2,561 |
| Bitbake | 33 | 18,692 | 18,179 | 206 | 307 |
| Makefile | 445 | 24,464 | 17,384 | 2,145 | 4,935 |
| XML | 46 | 10,700 | 9,888 | 142 | 670 |
| Shell | 131 | 13,881 | 9,775 | 2,733 | 1,373 |
| Visual Studio Project | 17 | 8,243 | 8,243 | 0 | 0 |
| CSS | 6 | 6,862 | 6,672 | 88 | 102 |
| JavaScript | 24 | 5,525 | 4,336 | 706 | 483 |
| JSON | 172 | 4,278 | 4,276 | 0 | 2 |
| GNU Style Assembly | 17 | 4,922 | 3,851 | 603 | 468 |
| Java | 17 | 4,995 | 3,542 | 802 | 651 |
| Happy | 1 | 3,614 | 3,436 | 0 | 178 |
| Swift | 4 | 1,736 | 1,274 | 203 | 259 |
| CMake | 14 | 1,488 | 1,187 | 104 | 197 |
| LD Script | 9 | 1,304 | 987 | 168 | 149 |
| SVG | 9 | 837 | 828 | 5 | 4 |
| Visual Studio Solution | 14 | 784 | 773 | 0 | 11 |
| Metal Shading Language | 1 | 1,042 | 748 | 147 | 147 |
| Forge Config | 16 | 1,757 | 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 | 10,456 | 0 | 8,762 | 1,694 |
| Plain Text | 36 | 5,316 | 0 | 4,768 | 548 |

Top language (C 40.4%). Generated at 2026-10-12T06:22:19.219652056Z. Canonical report: https://octocounts.com/github/libretro/RetroArch/commit/1815302e85b0eba12d8191f52f97b2a3f19554a2?reportId=f119826097454721ccde548acbb92d1601d18c7c7a051b7f0a7f46ee8e92b313&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/1815302e85b0eba12d8191f52f97b2a3f19554a2?reportId=f119826097454721ccde548acbb92d1601d18c7c7a051b7f0a7f46ee8e92b313&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 3,057,374 total lines, including 2,454,876 code lines, 326,181 comment lines, and 276,317 blank lines.

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

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.

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

This OctoCounts report was generated from master at commit 1815302e85b0 on 2026-10-12T06:22:19.219652056Z.

## Similar repository reports

- [chrissotraidis/peonpad](https://octocounts.com/github/chrissotraidis/peonpad) — C, 2,658,174 code lines
- [tsirysndr/rockboxd](https://octocounts.com/github/tsirysndr/rockboxd) — C, 2,063,553 code lines
- [zephyrproject-rtos/zephyr](https://octocounts.com/github/zephyrproject-rtos/zephyr) — C, 3,700,743 code lines
- [php/php-src](https://octocounts.com/github/php/php-src) — C, 1,802,084 code lines
- [python/cpython](https://octocounts.com/github/python/cpython) — C, 1,640,635 code lines
- [postgres/postgres](https://octocounts.com/github/postgres/postgres) — C, 1,632,480 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)
- [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)
