# libretro/retroarch SLOC report

> As of 2026-09-06 (commit a186bdba06ce), libretro/retroarch contains 2,636,457 total lines: 2,023,550 code, 319,978 comments, 292,929 blank, across 8,931 files in 45 languages (top: C 35.9%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving libretro/retroarch to commit a186bdba06ce, 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 76.8% of all lines, comments represent 12.1%, and the repository averages 227 code lines per file. C accounts for 35.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 1,547 | 966,412 | 727,233 | 110,963 | 128,216 |
| C Header | 1,747 | 961,935 | 718,998 | 159,049 | 83,888 |
| GLSL | 4,621 | 260,875 | 229,477 | 3,234 | 28,164 |
| C++ | 150 | 184,681 | 142,328 | 18,810 | 23,543 |
| C++ Header | 47 | 130,752 | 101,864 | 11,835 | 17,053 |
| Objective-C | 36 | 18,985 | 15,479 | 1,056 | 2,450 |
| HEX | 16 | 12,112 | 12,112 | 0 | 0 |
| Visual Studio Project | 17 | 8,517 | 8,517 | 0 | 0 |
| CSS | 6 | 6,845 | 6,659 | 87 | 99 |
| GNU Style Assembly | 23 | 8,236 | 6,649 | 801 | 786 |
| XML | 28 | 5,881 | 5,506 | 101 | 274 |
| Bitbake | 20 | 5,018 | 5,006 | 8 | 4 |

Top language (C 35.9%). Generated at 2026-09-06T16:31:14.876831723+00:00. Canonical report: https://octocounts.com/github/libretro/retroarch

## Report FAQ

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

libretro/retroarch has 2,636,457 total lines, including 2,023,550 code lines, 319,978 comment lines, and 292,929 blank lines.

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

OctoCounts resolved the public GitHub repository to commit a186bdba06ce, 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 a186bdba06cee156f38de1dd733664a53b94fdf3 at commit a186bdba06ce on 2026-09-06T16:31:14.876831723+00:00.

## Similar repository reports

- [tsirysndr/rockbox-zig](https://octocounts.com/github/tsirysndr/rockbox-zig) — C, 1,965,584 code lines
- [php/php-src](https://octocounts.com/github/php/php-src) — C, 1,785,546 code lines
- [bminor/glibc](https://octocounts.com/github/bminor/glibc) — C, 1,677,401 code lines
- [plan9foundation/plan9](https://octocounts.com/github/plan9foundation/plan9) — C, 1,659,936 code lines
- [postgres/postgres](https://octocounts.com/github/postgres/postgres) — C, 1,635,077 code lines
- [python/cpython](https://octocounts.com/github/python/cpython) — C, 1,623,307 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)
- [OctoCounts API docs](https://octocounts.com/docs/api)
