# libsdl-org/SDL SLOC report

> libsdl-org/SDL: 598,441 code lines at commit aa605000a71b, counted with tokei-15.0.0 on 2026-11-16. Saved result 95bc94d52bada9540dc51842383ca510f45509cbf60950657bb1af3876ba1c41.

libsdl-org/SDL has 598,441 source lines of code out of 808,799 total lines across 1,758 files, counted with tokei from the main ref at commit aa605000a71b on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving libsdl-org/SDL to commit aa605000a71b, 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

libsdl-org/SDL: 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 large codebase by counted code lines. Code represents 74.0% of all lines, comments represent 14.2%, and the repository averages 340 code lines per file. C accounts for 48.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 606 | 372,099 | 287,721 | 35,295 | 49,083 |
| C Header | 688 | 335,564 | 232,651 | 68,842 | 34,071 |
| Objective-C | 46 | 29,499 | 22,609 | 2,673 | 4,217 |
| XML | 31 | 12,233 | 11,243 | 66 | 924 |
| CMake | 53 | 12,813 | 10,352 | 1,195 | 1,266 |
| C++ | 39 | 11,990 | 8,955 | 1,334 | 1,701 |
| Java | 12 | 6,856 | 5,082 | 890 | 884 |
| Perl | 7 | 5,861 | 4,852 | 377 | 632 |
| Visual Studio Project | 48 | 3,903 | 3,903 | 0 | 0 |
| Python | 17 | 4,583 | 3,675 | 215 | 693 |
| Swift | 5 | 1,866 | 1,408 | 259 | 199 |
| Visual Studio Solution | 4 | 1,195 | 1,193 | 0 | 2 |
| Shell | 18 | 1,117 | 810 | 116 | 191 |
| HLSL | 27 | 851 | 680 | 27 | 144 |
| Autoconf | 24 | 978 | 678 | 96 | 204 |
| Metal Shading Language | 2 | 494 | 410 | 22 | 62 |
| JSON | 10 | 297 | 296 | 0 | 1 |
| MSBuild | 4 | 275 | 275 | 0 | 0 |
| M4 | 2 | 466 | 268 | 165 | 33 |
| CSS | 1 | 284 | 227 | 4 | 53 |
| Automake | 7 | 224 | 172 | 5 | 47 |
| Makefile | 5 | 218 | 155 | 19 | 44 |
| C++ Header | 4 | 291 | 148 | 92 | 51 |
| Batch | 8 | 172 | 134 | 0 | 38 |
| HTML | 3 | 144 | 129 | 0 | 15 |
| BASH | 1 | 160 | 122 | 21 | 17 |
| Prolog | 1 | 81 | 75 | 0 | 6 |
| C# | 1 | 91 | 56 | 27 | 8 |
| Ark TypeScript | 3 | 59 | 45 | 7 | 7 |
| Lua | 1 | 79 | 43 | 21 | 15 |
| HICAD | 1 | 46 | 36 | 0 | 10 |
| Meson | 1 | 22 | 18 | 0 | 4 |
| TypeScript | 3 | 13 | 11 | 0 | 2 |
| Xcode Config | 3 | 36 | 7 | 19 | 10 |
| Snakemake | 1 | 36 | 2 | 27 | 7 |
| Markdown | 17 | 1,142 | 0 | 822 | 320 |
| Plain Text | 54 | 2,761 | 0 | 2,537 | 224 |

Top language: C 48.1%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/libsdl-org/SDL/commit/aa605000a71b68609442413f05cecde7b901c64c?reportId=95bc94d52bada9540dc51842383ca510f45509cbf60950657bb1af3876ba1c41&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/libsdl-org/SDL/commit/aa605000a71b68609442413f05cecde7b901c64c?reportId=95bc94d52bada9540dc51842383ca510f45509cbf60950657bb1af3876ba1c41&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 libsdl-org/SDL have?

libsdl-org/SDL has 598,441 lines of code, plus 115,173 comment lines and 95,185 blank lines, for 808,799 total lines at commit aa605000a71b on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the libsdl-org/SDL line count measured?

OctoCounts resolved the public GitHub repository to commit aa605000a71b, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for libsdl-org/SDL?

This OctoCounts report was generated from main at commit aa605000a71b on November 16, 2026.

## Similar repository reports

- [dovecot/core](https://octocounts.com/github/dovecot/core) — C, 598,726 code lines
- [999sian/melee-pc](https://octocounts.com/github/999sian/melee-pc) — C, 610,012 code lines
- [lvgl/lvgl](https://octocounts.com/github/lvgl/lvgl) — C, 580,783 code lines
- [wigwoo1/Mario-Party-4-PC-Download-Play-Edition](https://octocounts.com/github/wigwoo1/Mario-Party-4-PC-Download-Play-Edition) — C, 578,733 code lines
- [SlickAmogus/silent-hill-decomp](https://octocounts.com/github/SlickAmogus/silent-hill-decomp) — C, 565,812 code lines
- [doldecomp/melee](https://octocounts.com/github/doldecomp/melee) — C, 563,940 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)
