# qemu/qemu SLOC report

> As of 2026-10-22 (commit ed698be77001), qemu/qemu contains 1,881,892 total lines: 1,376,643 code, 264,218 comments, 241,031 blank, across 5,874 files in 31 languages (top: C 76.5%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

qemu/qemu has 1,376,643 source lines of code out of 1,881,892 total lines across 5,874 files, counted from the master ref at commit ed698be77001 by the OctoCounts tokei engine on 2026-10-22. 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 qemu/qemu to commit ed698be77001, 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 73.2% of all lines, comments represent 14.0%, and the repository averages 234 code lines per file. C accounts for 76.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 2,522 | 1,396,272 | 1,053,014 | 157,813 | 185,445 |
| C Header | 2,468 | 311,702 | 178,808 | 94,547 | 38,347 |
| Bitbake | 75 | 44,229 | 39,019 | 1,428 | 3,782 |
| JSON | 53 | 28,582 | 27,361 | 0 | 1,221 |
| Python | 146 | 34,652 | 26,038 | 3,376 | 5,238 |
| Meson | 208 | 11,293 | 9,883 | 487 | 923 |
| Haxe | 5 | 9,761 | 8,925 | 15 | 821 |
| Rust | 56 | 8,683 | 6,863 | 625 | 1,195 |
| Perl | 5 | 6,130 | 4,856 | 509 | 765 |
| Shell | 48 | 6,015 | 4,787 | 679 | 549 |
| Objective-C | 7 | 4,628 | 3,443 | 493 | 692 |
| XML | 64 | 4,430 | 2,788 | 1,402 | 240 |

Top language (C 76.5%). Generated at 2026-10-22T11:45:28.966006336+00:00. Canonical report: https://octocounts.com/github/qemu/qemu

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/qemu/qemu/commit/ed698be7700160c74d24ef7830adccd2a28d840a?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=081fb6538c01529fea651732b0db7e0f7805406f9bddeaa504947210cda795a7).

## Report FAQ

### How many lines of code does qemu/qemu have?

qemu/qemu has 1,881,892 total lines, including 1,376,643 code lines, 264,218 comment lines, and 241,031 blank lines.

### How was the qemu/qemu line count measured?

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

### What commit was counted for qemu/qemu?

This OctoCounts report was generated from master at commit ed698be77001 on 2026-10-22T11:45:28.966006336+00:00.

## Similar repository reports

- [SanjeevBashyal/OpenFOAM](https://octocounts.com/github/SanjeevBashyal/OpenFOAM) — C, 1,371,094 code lines
- [ctrl-cheeb-del/pokeheartgold](https://octocounts.com/github/ctrl-cheeb-del/pokeheartgold) — C, 1,358,770 code lines
- [Kitware/CMake](https://octocounts.com/github/Kitware/CMake) — C, 1,279,596 code lines
- [xeonliu/FFmpeg-AVSPlus](https://octocounts.com/github/xeonliu/FFmpeg-AVSPlus) — C, 1,504,588 code lines
- [FFmpeg/FFmpeg](https://octocounts.com/github/FFmpeg/FFmpeg) — C, 1,584,959 code lines
- [apple/darwin-xnu](https://octocounts.com/github/apple/darwin-xnu) — C, 1,170,923 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)
