On Sun, Mar 17, 2024 at 11:28 AM Jim Hall via Freedos-user < freedos-user@lists.sourceforge.net> wrote:
> Doing a quick count of _everything_ in the source tree, including > tools and tests, from version 2.43 in Jeremy's GitHub > (https://github.com/FDOS/kernel/releases/tag/ke2043) I found this > count: > > All *.asm and *.inc files: 14,019 lines > (these are Assembly files) > > All *.c and *.h files: 29,510 lines > (these are C language files) > I downloaded kernel.zip from that repo and ran sloccount on it. For those unfamiliar, sloccount ("Source Lines of Code Count") counts lines in a language-aware manner (it knows what's in a comment block and what isn't). I think it is kind of the standard for "how many lines of code" and it's been around a long time. It defines line of code as "a physical source line of code (SLOC) is a line ending in a newline or end-of-file marker, and which contains at least one non-whitespace non-comment character". It says (this is just what's in kernel.zip): SLOC Directory SLOC-by-Language (Sorted) 28395 SOURCE ansic=18866,asm=9496,sh=33 0 APPINFO (none) 0 BIN (none) 0 DOC (none) Totals grouped by language (dominant language first): ansic: 18866 (66.44%) asm: 9496 (33.44%) sh: 33 (0.12%) Total Physical Source Lines of Code (SLOC) = 28,395 Development Effort Estimate, Person-Years (Person-Months) = 6.71 (80.56) (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05)) Schedule Estimate, Years (Months) = 1.10 (13.25) (Basic COCOMO model, Months = 2.5 * (person-months**0.38)) Estimated Average Number of Developers (Effort/Schedule) = 6.08 Total Estimated Cost to Develop = $ 906,871 (average salary = $56,286/year, overhead = 2.40). SLOCCount, Copyright (C) 2001-2004 David A. Wheeler SLOCCount is Open Source Software/Free Software, licensed under the GNU GPL. SLOCCount comes with ABSOLUTELY NO WARRANTY, and you are welcome to redistribute it under certain conditions as specified by the GNU GPL license; see the documentation for details. Please credit this data as "generated using David A. Wheeler's 'SLOCCount'." -- andrew fabbro and...@fabbro.org
_______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user