zephyrproject-rtos/zephyr has 3,807,176 source lines of code out of 5,417,112 total lines across 34,651 files, counted with tokei from the main ref at commit 7cd4b562b30a on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
zephyrproject-rtos/zephyr: 3,807,176 code lines at commit 7cd4b562b30a, counted with tokei-15.0.0 on 2026-11-13. Saved result 705e722d447fb4e4af9e2667a512e6c3412f9b345fc4c0217392bdce66baf623.
OctoCounts produced this report by resolving zephyrproject-rtos/zephyr to commit 7cd4b562b30a, 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 very large codebase by counted code lines. Code represents 70.3% of all lines, comments represent 14.5%, and the repository averages 110 code lines per file. C accounts for 57.9% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 7399 | 2998172 | 2205076 | 292565 | 500531 |
| Device Tree | 6187 | 733579 | 574506 | 48251 | 110822 |
| C Header | 5350 | 1004238 | 525106 | 367456 | 111676 |
| YAML | 8585 | 247171 | 201312 | 13508 | 32351 |
| Python | 394 | 128948 | 96923 | 11546 | 20479 |
| CMake | 4234 | 100457 | 64291 | 18420 | 17746 |
| ReStructuredText | 1087 | 60774 | 44954 | 0 | 15820 |
| LD Script | 420 | 42708 | 29429 | 6881 | 6398 |
| GNU Style Assembly | 192 | 27792 | 14842 | 8997 | 3953 |
| C++ Header | 13 | 13585 | 13209 | 288 | 88 |
| Perl | 4 | 7660 | 6013 | 779 | 868 |
| Forge Config | 509 | 8994 | 5323 | 1711 | 1960 |
| JSON | 19 | 4639 | 4639 | 0 | 0 |
| C++ | 22 | 4694 | 3686 | 543 | 465 |
| JavaScript | 8 | 2828 | 2326 | 307 | 195 |
| Protocol Buffers | 2 | 2489 | 1939 | 102 | 448 |
| TOML | 10 | 2084 | 1745 | 167 | 172 |
| Shell | 27 | 2352 | 1667 | 283 | 402 |
| CSS | 6 | 2019 | 1657 | 101 | 261 |
| BASH | 4 | 1766 | 1362 | 187 | 217 |
| SVG | 6 | 1356 | 1333 | 2 | 21 |
| MSBuild | 16 | 897 | 897 | 0 | 0 |
| HTML | 13 | 1023 | 863 | 60 | 100 |
| Lauterbach PRACTICE Script | 14 | 993 | 610 | 237 | 146 |
| Zsh | 1 | 688 | 565 | 17 | 106 |
| Fish | 1 | 680 | 520 | 61 | 99 |
| Bitbake | 14 | 663 | 497 | 49 | 117 |
| HICAD | 10 | 430 | 362 | 0 | 68 |
| HEX | 1 | 331 | 331 | 0 | 0 |
| TCL | 4 | 366 | 233 | 92 | 41 |
| Apache Velocity | 1 | 221 | 205 | 0 | 16 |
| Ark TypeScript | 1 | 201 | 168 | 0 | 33 |
| Makefile | 2 | 207 | 129 | 40 | 38 |
| Autoconf | 8 | 167 | 100 | 53 | 14 |
| F# | 2 | 90 | 75 | 0 | 15 |
| COBOL | 1 | 78 | 63 | 0 | 15 |
| GDB Script | 4 | 86 | 35 | 39 | 12 |
| PowerShell | 1 | 57 | 33 | 16 | 8 |
| FreeMarker | 1 | 35 | 29 | 0 | 6 |
| VB6/VBA | 1 | 35 | 27 | 0 | 8 |
| Haskell | 1 | 36 | 25 | 0 | 11 |
| Batch | 2 | 33 | 24 | 2 | 7 |
| INI | 1 | 19 | 16 | 0 | 3 |
| Vim Script | 1 | 16 | 13 | 0 | 3 |
| TypeScript | 1 | 14 | 9 | 0 | 5 |
| XML | 1 | 9 | 9 | 0 | 0 |
| Jupyter Notebooks | 2 | 0 | 0 | 0 | 0 |
| Markdown | 9 | 1220 | 0 | 926 | 294 |
| Plain Text | 59 | 10212 | 0 | 9531 | 681 |
Top language: C 57.9%. Generated on .
zephyrproject-rtos/zephyr: 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.
zephyrproject-rtos/zephyr has 3,807,176 lines of code, plus 783,217 comment lines and 826,719 blank lines, for 5,417,112 total lines at commit 7cd4b562b30a on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 7cd4b562b30a, 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 7cd4b562b30a on November 13, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for zephyrproject-rtos/zephyr on this page — 3,807,176 code lines across 49 languages, counted by tokei.