# libretro/RetroArch SLOC report

> 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.

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.

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.

## Repository size insights

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 | 1,906 | 1,435,475 | 1,126,425 | 166,045 | 143,005 |
| C Header | 1,879 | 1,126,814 | 946,028 | 117,761 | 63,025 |
| GLSL | 4,585 | 260,215 | 228,757 | 3,402 | 28,056 |
| C++ | 123 | 175,145 | 135,222 | 18,198 | 21,725 |
| C++ Header | 36 | 100,338 | 79,113 | 8,819 | 12,406 |
| Objective-C | 57 | 41,803 | 33,071 | 4,644 | 4,088 |
| Python | 181 | 35,734 | 31,426 | 1,476 | 2,832 |
| Bitbake | 41 | 22,532 | 21,975 | 213 | 344 |
| Makefile | 523 | 28,568 | 20,492 | 2,357 | 5,719 |
| Shell | 140 | 14,451 | 10,160 | 2,852 | 1,439 |
| XML | 46 | 10,705 | 9,890 | 145 | 670 |
| Visual Studio Project | 18 | 9,271 | 9,271 | 0 | 0 |

Top language (C 41.9%). Generated at 2026-10-21T03:43:39.765254933+00:00. Canonical report: https://octocounts.com/github/libretro/RetroArch

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/libretro/RetroArch/commit/18d2e1df1d33c217c2bbd9f22b224a335bf832e8?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D&reportId=21b2e01bbfd5a709d86faa3230d38628b47a54724b045f2a6c9914c4677fe4d3).

## Report FAQ

### How many lines of code does libretro/RetroArch have?

libretro/RetroArch has 3,322,919 total lines, including 2,688,408 code lines, 345,393 comment lines, and 289,118 blank lines.

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

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.

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

This OctoCounts report was generated from master at commit 18d2e1df1d33 on 2026-10-21T03:43:39.765254933+00:00.

## Similar repository reports

- [chrissotraidis/peonpad](https://octocounts.com/github/chrissotraidis/peonpad) — C, 2,658,152 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,358 code lines
- [php/php-src](https://octocounts.com/github/php/php-src) — C, 1,798,608 code lines
- [python/cpython](https://octocounts.com/github/python/cpython) — C, 1,634,582 code lines
- [postgres/postgres](https://octocounts.com/github/postgres/postgres) — C, 1,632,075 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)
