As of 2026-08-29 (commit f80761e49401), zephyrproject-rtos/zephyr contains 6,352,648 total lines: 4,486,339 code, 840,215 comments, 1,026,094 blank, across 42,162 files in 51 languages (top: C 56.5%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving zephyrproject-rtos/zephyr to commit f80761e49401, 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 very large codebase by counted code lines. Code represents 70.6% of all lines, comments represent 13.2%, and the repository averages 106 code lines per file. C accounts for 56.5% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 9448 | 3487710 | 2533952 | 357938 | 595820 |
| C Header | 5510 | 978817 | 520805 | 347669 | 110343 |
| Device Tree | 5700 | 658718 | 518618 | 42140 | 97960 |
| ReStructuredText | 3226 | 446225 | 331723 | 0 | 114502 |
| YAML | 9602 | 264905 | 219663 | 13995 | 31247 |
| Python | 574 | 188479 | 145120 | 13934 | 29425 |
| CMake | 5415 | 116759 | 75064 | 19746 | 21949 |
| SVG | 86 | 32911 | 32106 | 481 | 324 |
| LD Script | 423 | 41719 | 28761 | 6666 | 6292 |
| GNU Style Assembly | 187 | 26162 | 13880 | 8478 | 3804 |
| C++ Header | 17 | 13699 | 13267 | 319 | 113 |
| Shell | 1038 | 18204 | 8187 | 5742 | 4275 |
Top language (C 56.5%). Generated at 2026-08-29T03:16:05.415194341+00:00.
zephyrproject-rtos/zephyr has 6,352,648 total lines, including 4,486,339 code lines, 840,215 comment lines, and 1,026,094 blank lines.
OctoCounts resolved the public GitHub repository to commit f80761e49401, 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 f80761e49401 on 2026-08-29T03:16:05.415194341+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: