# freebsd/freebsd-src SLOC report

> As of 2026-11-01 (commit 775e421dc38f), freebsd/freebsd-src contains 30,875,031 total lines: 22,335,858 code, 5,054,061 comments, 3,485,112 blank, across 74,934 files in 83 languages (top language: C 44.7%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

freebsd/freebsd-src has 22,335,858 source lines of code out of 30,875,031 total lines across 74,934 files, counted with tokei from the 775e421dc38f18fa6b7fdc7b214a013cca44b58b ref at commit 775e421dc38f on November 1, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving freebsd/freebsd-src to commit 775e421dc38f, 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

freebsd/freebsd-src: 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 72.3% of all lines, comments represent 16.4%, and the repository averages 298 code lines per file. C accounts for 44.7% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 20,105 | 13,490,175 | 9,978,987 | 1,972,916 | 1,538,272 |
| C Header | 21,408 | 6,418,639 | 4,304,396 | 1,454,175 | 660,068 |
| C++ | 6,171 | 4,691,993 | 3,484,303 | 633,060 | 574,630 |
| Device Tree | 6,546 | 2,160,586 | 1,775,080 | 95,505 | 290,001 |
| GNU Style Assembly | 922 | 700,627 | 599,260 | 29,889 | 71,478 |
| YAML | 5,786 | 635,451 | 514,341 | 24,145 | 96,965 |
| JSON | 587 | 271,441 | 271,438 | 0 | 3 |
| Perl | 390 | 287,298 | 228,833 | 27,337 | 31,128 |
| Autoconf | 774 | 278,162 | 227,731 | 23,762 | 26,669 |
| Shell | 1,259 | 286,563 | 200,194 | 54,437 | 31,932 |
| Makefile | 4,051 | 170,630 | 118,715 | 27,393 | 24,522 |
| Bitbake | 669 | 119,959 | 110,517 | 4,280 | 5,162 |

Top language: C 44.7%. Generated on November 1, 2026. Canonical report: https://octocounts.com/github/freebsd/freebsd-src

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/freebsd/freebsd-src/commit/775e421dc38f18fa6b7fdc7b214a013cca44b58b?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&reportId=cc2772aca1428b21655220a2f9910d9da42fc895ffe6143b51f61ce307e3517b).

## Report FAQ

### How many lines of code does freebsd/freebsd-src have?

freebsd/freebsd-src has 22,335,858 lines of code, plus 5,054,061 comment lines and 3,485,112 blank lines, for 30,875,031 total lines at commit 775e421dc38f on November 1, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the freebsd/freebsd-src line count measured?

OctoCounts resolved the public GitHub repository to commit 775e421dc38f, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for freebsd/freebsd-src?

This OctoCounts report was generated from 775e421dc38f18fa6b7fdc7b214a013cca44b58b at commit 775e421dc38f on November 1, 2026.

## Similar repository reports

- [Maccraft123/linux-duet](https://octocounts.com/github/Maccraft123/linux-duet) — C, 21,512,207 code lines
- [openbsd/src](https://octocounts.com/github/openbsd/src) — C, 20,711,629 code lines
- [VirtualBox/virtualbox](https://octocounts.com/github/VirtualBox/virtualbox) — C, 16,046,794 code lines
- [ARARAT33/AWEOS](https://octocounts.com/github/ARARAT33/AWEOS) — C, 32,335,471 code lines
- [torvalds/linux](https://octocounts.com/github/torvalds/linux) — C, 32,873,144 code lines
- [DeusData/codebase-memory-mcp](https://octocounts.com/github/DeusData/codebase-memory-mcp) — C, 14,326,096 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)
