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.
As of 2026-11-16 (commit aa605000a71b), libsdl-org/SDL contains 808,799 total lines: 598,441 code, 115,173 comments, 95,185 blank, across 1,758 files in 37 languages (top language: C 48.1%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
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.
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 | 372099 | 287721 | 35295 | 49083 |
| C Header | 688 | 335564 | 232651 | 68842 | 34071 |
| Objective-C | 46 | 29499 | 22609 | 2673 | 4217 |
| XML | 31 | 12233 | 11243 | 66 | 924 |
| CMake | 53 | 12813 | 10352 | 1195 | 1266 |
| C++ | 39 | 11990 | 8955 | 1334 | 1701 |
| Java | 12 | 6856 | 5082 | 890 | 884 |
| Perl | 7 | 5861 | 4852 | 377 | 632 |
| Visual Studio Project | 48 | 3903 | 3903 | 0 | 0 |
| Python | 17 | 4583 | 3675 | 215 | 693 |
| Swift | 5 | 1866 | 1408 | 259 | 199 |
| Visual Studio Solution | 4 | 1195 | 1193 | 0 | 2 |
Top language: C 48.1%. Generated on .
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.
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.
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.
This OctoCounts report was generated from main at commit aa605000a71b on November 16, 2026.
Play the growth animation for libsdl-org/SDL on this page — 598,441 code lines across 37 languages, counted by tokei.