zephyrproject-rtos/zephyr SLOC report
As of 2026-08-06 (commit 782566d7f8ba), zephyrproject-rtos/zephyr contains 6,191,812 total lines: 4,378,032 code, 812,090 comments, 1,001,690 blank, across 41,355 files in 51 languages (top: C 56.5%). Counted with tokei via OctoCounts.
Repository size insights
This is a very large codebase by counted code lines. Code represents 70.7% of all lines, comments represent 13.1%, and the repository averages 106 code lines per file. C accounts for 56.5% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|
| C | 9273 | 3396374 | 2472082 | 342645 | 581647 |
| C Header | 5423 | 956345 | 508801 | 339279 | 108265 |
| Device Tree | 5585 | 644069 | 507003 | 40974 | 96092 |
| ReStructuredText | 3177 | 438514 | 326020 | 0 | 112494 |
| YAML | 9388 | 257401 | 213494 | 13539 | 30368 |
| Python | 561 | 183542 | 141307 | 13576 | 28659 |
| CMake | 5315 | 114017 | 72257 | 21081 | 20679 |
| SVG | 86 | 32911 | 32106 | 481 | 324 |
| LD Script | 414 | 39587 | 27242 | 6396 | 5949 |
| GNU Style Assembly | 184 | 25902 | 13762 | 8364 | 3776 |
| C++ Header | 17 | 13699 | 13267 | 319 | 113 |
| Shell | 1026 | 17567 | 7999 | 5377 | 4191 |
Top language (C 56.5%). Generated at 2026-08-06T15:25:57.003178719+00:00.
Report FAQ
How many lines of code does zephyrproject-rtos/zephyr have?
zephyrproject-rtos/zephyr has 6,191,812 total lines, including 4,378,032 code lines, 812,090 comment lines, and 1,001,690 blank lines.
How was the zephyrproject-rtos/zephyr line count measured?
OctoCounts resolved the public GitHub repository to commit 782566d7f8ba, 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 782566d7f8ba on 2026-08-06T15:25:57.003178719+00:00.