# mit-pdos/xv6-riscv SLOC report

> mit-pdos/xv6-riscv: 10,200 code lines at commit fa2ddcb7ca87, counted with tokei-15.0.0 on 2026-11-05. Saved result 7f75207bc7bfecac4d59c1ad8171a1e34e39e38a29a79f1f54aa8b930bb0fd00.

mit-pdos/xv6-riscv has 10,200 source lines of code out of 13,065 total lines across 74 files, counted with tokei from the riscv ref at commit fa2ddcb7ca87 on November 5, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving mit-pdos/xv6-riscv to commit fa2ddcb7ca87, 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

mit-pdos/xv6-riscv: 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 medium-sized codebase by counted code lines. Code represents 78.1% of all lines, comments represent 9.9%, and the repository averages 138 code lines per file. C accounts for 85.0% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 47 | 11,073 | 8,673 | 1,092 | 1,308 |
| C Header | 18 | 1,155 | 832 | 176 | 147 |
| GNU Style Assembly | 4 | 279 | 247 | 0 | 32 |
| Python | 1 | 224 | 183 | 11 | 30 |
| Makefile | 1 | 205 | 160 | 14 | 31 |
| LD Script | 2 | 84 | 67 | 4 | 13 |
| Perl | 1 | 45 | 38 | 2 | 5 |

Top language: C 85.0%. Generated on November 5, 2026. Canonical report: https://octocounts.com/github/mit-pdos/xv6-riscv/commit/fa2ddcb7ca87a77af579380a6eafd5aff163b44f?reportId=7f75207bc7bfecac4d59c1ad8171a1e34e39e38a29a79f1f54aa8b930bb0fd00&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/mit-pdos/xv6-riscv/commit/fa2ddcb7ca87a77af579380a6eafd5aff163b44f?reportId=7f75207bc7bfecac4d59c1ad8171a1e34e39e38a29a79f1f54aa8b930bb0fd00&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 mit-pdos/xv6-riscv have?

mit-pdos/xv6-riscv has 10,200 lines of code, plus 1,299 comment lines and 1,566 blank lines, for 13,065 total lines at commit fa2ddcb7ca87 on November 5, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the mit-pdos/xv6-riscv line count measured?

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

### What commit was counted for mit-pdos/xv6-riscv?

This OctoCounts report was generated from riscv at commit fa2ddcb7ca87 on November 5, 2026.

## Similar repository reports

- [ii8/havoc](https://octocounts.com/github/ii8/havoc) — C, 11,177 code lines
- [project-repo/cagebreak](https://octocounts.com/github/project-repo/cagebreak) — C, 11,235 code lines
- [saintsHr/Sulfur](https://octocounts.com/github/saintsHr/Sulfur) — C, 11,294 code lines
- [FelixKratz/SketchyBar](https://octocounts.com/github/FelixKratz/SketchyBar) — C, 11,651 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)
