# libretro/RetroArch SLOC report

> As of 2026-11-10 (commit ce3ee5174c29), libretro/RetroArch contains 3,328,583 total lines: 2,723,252 code, 347,143 comments, 258,188 blank, across 6,345 files in 42 languages (top language: C 52.6%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

libretro/RetroArch has 2,723,252 source lines of code out of 3,328,583 total lines across 6,345 files, counted with tokei from the master ref at commit ce3ee5174c29 on November 10, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving libretro/RetroArch to commit ce3ee5174c29, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

libretro/RetroArch: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 81.8% of all lines, comments represent 10.4%, and the repository averages 429 code lines per file. C accounts for 52.6% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 2,426 | 1,779,171 | 1,433,561 | 187,289 | 158,321 |
| C Header | 2,127 | 1,182,622 | 1,001,911 | 118,534 | 62,177 |
| C++ Header | 16 | 88,308 | 70,001 | 7,284 | 11,023 |
| Python | 272 | 50,284 | 44,869 | 1,789 | 3,626 |
| Objective-C | 65 | 43,393 | 34,609 | 4,688 | 4,096 |
| Bitbake | 66 | 26,889 | 26,294 | 234 | 361 |
| Makefile | 648 | 35,338 | 25,536 | 2,873 | 6,929 |
| C++ | 33 | 28,953 | 22,811 | 2,008 | 4,134 |
| Shell | 140 | 15,248 | 10,800 | 3,033 | 1,415 |
| XML | 48 | 10,719 | 9,902 | 147 | 670 |
| Visual Studio Project | 18 | 9,413 | 9,413 | 0 | 0 |
| CSS | 6 | 6,862 | 6,672 | 88 | 102 |

Top language: C 52.6%. Generated on November 10, 2026. Canonical report: https://octocounts.com/github/libretro/RetroArch

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/libretro/RetroArch/commit/ce3ee5174c29ac6717c7e98cf5fedda40e72eabe?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=54c29588cbc71d3ddda2dd21b4283db2fa71ca686169e1a2ffb9b233539334bc).

## Report FAQ

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

libretro/RetroArch has 2,723,252 lines of code, plus 347,143 comment lines and 258,188 blank lines, for 3,328,583 total lines at commit ce3ee5174c29 on November 10, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit ce3ee5174c29, 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 ce3ee5174c29 on November 10, 2026.

## Similar repository reports

- [chrissotraidis/peonpad](https://octocounts.com/github/chrissotraidis/peonpad) — C, 2,658,174 code lines
- [balloonwj/flamingo](https://octocounts.com/github/balloonwj/flamingo) — C, 2,869,108 code lines
- [wolfSSL/wolfssl](https://octocounts.com/github/wolfSSL/wolfssl) — C, 3,391,636 code lines
- [alenichev/openbsd-kernel](https://octocounts.com/github/alenichev/openbsd-kernel) — C, 2,183,806 code lines
- [tsirysndr/rockboxd](https://octocounts.com/github/tsirysndr/rockboxd) — C, 2,103,426 code lines
- [0x4E69676874466F78/miranda-ng](https://octocounts.com/github/0x4E69676874466F78/miranda-ng) — C, 2,064,087 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)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
