3 ms·
FWIW WinXP is officially quoted as 45 million lines of code (https://www.facebook.com/windows/posts/155741344475532 https://www.facebook.com/windows/posts/15574
by exikyut 9y ago
FWIW WinXP is officially quoted as 45 million lines of code (https://www.facebook.com/windows/posts/155741344475532 https://www.facebook.com/windows/posts/155741344475532), everyone's decided Win10 is 5-10 (some say 15-20) million more.
I've been meaning to SLOCcount Linux sometime, actually!
Having said that, I don't think it'll be 45M LOC. The kernel is 20M LOC (https://www.linuxcounter.net/statistics/kernel https://www.linuxcounter.net/statistics/kernel). Chrome is 18M (excluding blank lines/comments) (https://www.openhub.net/p/chrome/analyses/latest/languages_summary https://www.openhub.net/p/chrome/analyses/latest/languages_s...). LibreOffice is 9M LOC (https://www.openhub.net/p/libreoffice https://www.openhub.net/p/libreoffice).
And then I found out that KDE is 60M LOC!! (https://www.openhub.net/p/kde https://www.openhub.net/p/kde)
GNOME is 9M (https://www.openhub.net/p/gnome https://www.openhub.net/p/gnome).
But I'm guessing those two stats are comparing just the base desktop environment in GNOME's case with all the productivity apps (including KWrite et al) and system libraries (including QtWebKit et al). This must be kept in mind.
TL;DR, an incredibly basic system with just a word processor and web browser, and maybe a minimal windowmanager on top, would be 47M. Adding KDE in makes it 107M - but you're almost never going to use all of it (whereas with Chrome and LibreOffice some large proportion of that 18M and 9M is loaded into RAM and potentially targetable).
- gerdesj 9y agoMate, the sheer amount of LoC in any modern system is nearly uncountable. I have been a serious Gentoo aficionado for many years. My lap has been burnt for hours simply compiling Firefox or LO. They are both massive and they are only two apps. If you want to SLOC Linux then download it https://www.kernel.org/ https://www.kernel.org/ and help yourself. Why not look here as well https://www.freebsd.org https://www.freebsd.org and others - those are my mates, and good ones.