# zephyrproject-rtos/zephyr SLOC report

> zephyrproject-rtos/zephyr: 3,807,176 code lines at commit 7cd4b562b30a, counted with tokei-15.0.0 on 2026-11-13. Saved result 705e722d447fb4e4af9e2667a512e6c3412f9b345fc4c0217392bdce66baf623.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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 | 7,399 | 2,998,172 | 2,205,076 | 292,565 | 500,531 |
| Device Tree | 6,187 | 733,579 | 574,506 | 48,251 | 110,822 |
| C Header | 5,350 | 1,004,238 | 525,106 | 367,456 | 111,676 |
| YAML | 8,585 | 247,171 | 201,312 | 13,508 | 32,351 |
| Python | 394 | 128,948 | 96,923 | 11,546 | 20,479 |
| CMake | 4,234 | 100,457 | 64,291 | 18,420 | 17,746 |
| ReStructuredText | 1,087 | 60,774 | 44,954 | 0 | 15,820 |
| LD Script | 420 | 42,708 | 29,429 | 6,881 | 6,398 |
| GNU Style Assembly | 192 | 27,792 | 14,842 | 8,997 | 3,953 |
| C++ Header | 13 | 13,585 | 13,209 | 288 | 88 |
| Perl | 4 | 7,660 | 6,013 | 779 | 868 |
| Forge Config | 509 | 8,994 | 5,323 | 1,711 | 1,960 |
| JSON | 19 | 4,639 | 4,639 | 0 | 0 |
| C++ | 22 | 4,694 | 3,686 | 543 | 465 |
| JavaScript | 8 | 2,828 | 2,326 | 307 | 195 |
| Protocol Buffers | 2 | 2,489 | 1,939 | 102 | 448 |
| TOML | 10 | 2,084 | 1,745 | 167 | 172 |
| Shell | 27 | 2,352 | 1,667 | 283 | 402 |
| CSS | 6 | 2,019 | 1,657 | 101 | 261 |
| BASH | 4 | 1,766 | 1,362 | 187 | 217 |
| SVG | 6 | 1,356 | 1,333 | 2 | 21 |
| MSBuild | 16 | 897 | 897 | 0 | 0 |
| HTML | 13 | 1,023 | 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 | 1,220 | 0 | 926 | 294 |
| Plain Text | 59 | 10,212 | 0 | 9,531 | 681 |

Top language: C 57.9%. Generated on November 13, 2026. Canonical report: https://octocounts.com/github/zephyrproject-rtos/zephyr/commit/7cd4b562b30a9bcd76a7288ad90d5e71dd6f87d2?reportId=705e722d447fb4e4af9e2667a512e6c3412f9b345fc4c0217392bdce66baf623&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/zephyrproject-rtos/zephyr/commit/7cd4b562b30a9bcd76a7288ad90d5e71dd6f87d2?reportId=705e722d447fb4e4af9e2667a512e6c3412f9b345fc4c0217392bdce66baf623&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 zephyrproject-rtos/zephyr have?

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.

### How was the zephyrproject-rtos/zephyr line count measured?

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.

### What commit was counted for zephyrproject-rtos/zephyr?

This OctoCounts report was generated from main at commit 7cd4b562b30a on November 13, 2026.

## Similar repository reports

- [semgrep/semgrep](https://octocounts.com/github/semgrep/semgrep) — C, 3,871,891 code lines
- [wolfSSL/wolfssl](https://octocounts.com/github/wolfSSL/wolfssl) — C, 3,394,825 code lines
- [yugabyte/yugabyte-db](https://octocounts.com/github/yugabyte/yugabyte-db) — C, 4,911,413 code lines
- [balloonwj/flamingo](https://octocounts.com/github/balloonwj/flamingo) — C, 2,869,108 code lines
- [libretro/RetroArch](https://octocounts.com/github/libretro/RetroArch) — C, 2,829,492 code lines
- [chrissotraidis/peonpad](https://octocounts.com/github/chrissotraidis/peonpad) — C, 2,658,349 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)
