libsdl-org/SDL has 599,525 source lines of code out of 810,234 total lines across 1,754 files, counted from the main ref at commit 8adc0f98837d by the OctoCounts tokei engine on 2026-10-23. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-23 (commit 8adc0f98837d), libsdl-org/SDL contains 810,234 total lines: 599,525 code, 115,199 comments, 95,510 blank, across 1,754 files in 37 languages (top: C 48.3%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving libsdl-org/SDL to commit 8adc0f98837d, 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.
This is a large codebase by counted code lines. Code represents 74.0% of all lines, comments represent 14.2%, and the repository averages 342 code lines per file. C accounts for 48.3% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 604 | 374467 | 289428 | 35528 | 49511 |
| C Header | 689 | 335299 | 232598 | 68693 | 34008 |
| Objective-C | 46 | 29222 | 22385 | 2641 | 4196 |
| XML | 31 | 12233 | 11243 | 66 | 924 |
| CMake | 53 | 12786 | 10325 | 1196 | 1265 |
| C++ | 39 | 11812 | 8772 | 1327 | 1713 |
| Java | 12 | 6710 | 4971 | 872 | 867 |
| Perl | 7 | 5861 | 4852 | 377 | 632 |
| Visual Studio Project | 47 | 3910 | 3910 | 0 | 0 |
| Python | 16 | 4538 | 3644 | 214 | 680 |
| Swift | 5 | 1866 | 1408 | 259 | 199 |
| Visual Studio Solution | 4 | 1195 | 1193 | 0 | 2 |
Top language (C 48.3%). Generated at .
libsdl-org/SDL has 810,234 total lines, including 599,525 code lines, 115,199 comment lines, and 95,510 blank lines.
OctoCounts resolved the public GitHub repository to commit 8adc0f98837d, 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 8adc0f98837d on 2026-10-23T09:14:09.484696561+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for libsdl-org/SDL on this page — 599,525 code lines across 12 languages, counted by tokei.