# zephyrproject-rtos/zephyr SLOC report

> As of 2026-09-15 (commit 8445f9958c75), zephyrproject-rtos/zephyr contains 5,087,353 total lines: 3,583,127 code, 727,748 comments, 776,478 blank, across 32,723 files in 49 languages (top: C 57.9%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

zephyrproject-rtos/zephyr has 3,583,127 source lines of code out of 5,087,353 total lines across 32,723 files, counted from the 8445f9958c756bc91931882c07e174e9650e55c9 ref at commit 8445f9958c75 by the OctoCounts tokei engine on 2026-09-15. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving zephyrproject-rtos/zephyr to commit 8445f9958c75, 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.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 70.4% of all lines, comments represent 14.3%, and the repository averages 109 code lines per file. C accounts for 57.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 7,018 | 2,812,991 | 2,073,318 | 268,788 | 470,885 |
| Device Tree | 5,639 | 670,971 | 528,357 | 42,209 | 100,405 |
| C Header | 5,076 | 958,147 | 506,618 | 344,853 | 106,676 |
| YAML | 8,119 | 228,875 | 186,435 | 12,440 | 30,000 |
| Python | 381 | 121,220 | 90,696 | 11,118 | 19,406 |
| CMake | 4,073 | 96,550 | 61,787 | 17,676 | 17,087 |
| ReStructuredText | 1,050 | 58,082 | 42,940 | 0 | 15,142 |
| LD Script | 403 | 41,909 | 28,837 | 6,780 | 6,292 |
| GNU Style Assembly | 182 | 26,490 | 14,074 | 8,599 | 3,817 |
| C++ Header | 13 | 13,585 | 13,209 | 288 | 88 |
| Perl | 4 | 7,467 | 5,856 | 762 | 849 |
| Forge Config | 493 | 8,920 | 5,323 | 1,661 | 1,936 |

Top language (C 57.9%). Generated at 2026-09-15T21:50:31.285331694+00:00. Canonical report: https://octocounts.com/github/zephyrproject-rtos/zephyr

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/zephyrproject-rtos/zephyr/commit/8445f9958c756bc91931882c07e174e9650e55c9?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does zephyrproject-rtos/zephyr have?

zephyrproject-rtos/zephyr has 5,087,353 total lines, including 3,583,127 code lines, 727,748 comment lines, and 776,478 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 8445f9958c75, 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 8445f9958c756bc91931882c07e174e9650e55c9 at commit 8445f9958c75 on 2026-09-15T21:50:31.285331694+00:00.

## Similar repository reports

- [yugabyte/yugabyte-db](https://octocounts.com/github/yugabyte/yugabyte-db) — C, 4,654,940 code lines
- [tsirysndr/rockbox-zig](https://octocounts.com/github/tsirysndr/rockbox-zig) — C, 2,061,816 code lines
- [libretro/retroarch](https://octocounts.com/github/libretro/retroarch) — C, 2,023,550 code lines
- [TelegramMessenger/Telegram-iOS](https://octocounts.com/github/TelegramMessenger/Telegram-iOS) — C, 5,285,043 code lines
- [php/php-src](https://octocounts.com/github/php/php-src) — C, 1,793,289 code lines
- [plan9foundation/plan9](https://octocounts.com/github/plan9foundation/plan9) — C, 1,659,936 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)
- [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)
