Request: SLOC stats of ReactOS 0.0.1.0, 0.1.0, 0.2.0 & 0.3.0
SLOC = source lines of code
I would like to compose some neat statistics about ReactOS (for reactos.org) and I need help of people with unix compatible operating systems (because the only reasonable SLOC scan tool "sloccount") isn't available for Win32. If you get it working with Cygwin, CoLinux, etc. under Win32 it's fine too.
sloccount: http://www.dwheeler.com/sloccount/
Please scan the source code (export it from svn; don't scan svn dir directly) of 0.0.1.0, 0.1.0, 0.2.0 & 0.3.0 (current 0.3.0 rc3 branch).
General information about SLOC: http://en.wikipedia.org/wiki/Source_lines_of_code
If you don't want to hassle with svn, then download the following source code archives from sourceforge:
0.0.1.0: http://prdownloads.sourceforge.net/reactos/0010_source.zip 0.1.0: http://prdownloads.sourceforge.net/reactos/0100_source.zip 0.2.0: http://prdownloads.sourceforge.net/reactos/reactos-0.2.0-source.zip 0.3.0 (rc2): http://prdownloads.sourceforge.net/reactos/reactos0.3.0-RC2-src.zip
If you think you found a better tool to count SLOC's then share the results too.
And please share the results from "sloccount", even someone else already posted stats about the same version. There might be differences in the results and it's better to have more stats of the same version to verify and use average values.
Please scan the "reactos" dir (and all it's sub-dirs) and add specific of which version of ReactOS & sloccount you have used to gather the stats.
Thanks for your help.
Klemens
From: "Klemens Friedl" frik85@gmail.com Subject: [ros-dev] Request: SLOC stats of ReactOS 0.0.1.0, 0.1.0, 0.2.0 & 0.3.0 Date: Thu, 17 Aug 2006 16:34:21 +0200
If you don't want to hassle with svn, then download the following source code archives from sourceforge:
0.0.1.0: http://prdownloads.sourceforge.net/reactos/0010_source.zip 0.1.0: http://prdownloads.sourceforge.net/reactos/0100_source.zip 0.2.0: http://prdownloads.sourceforge.net/reactos/reactos-0.2.0-source.zip 0.3.0 (rc2): http://prdownloads.sourceforge.net/reactos/reactos0.3.0-RC2-src.zip
Using sloccount 2.26 on Linux and the zip archives listed above I get the following results.
Note: The 0.0.1.0 download appears to be corrupt (tried multiple mirrors), so I have no results for that version.
ReactOS Version 0.1.0.0 -----------------------
SLOC Directory SLOC-by-Language (Sorted) 123354 lib ansic=122456,asm=599,yacc=153,lex=114,cpp=32 119025 drivers ansic=117047,asm=712,cpp=560,pascal=536,sh=170 80652 subsys ansic=71435,sh=7476,python=1741 73994 include ansic=73994 66434 ntoskrnl ansic=64625,asm=1809 38169 apps ansic=31518,cpp=6203,asm=448 6307 tools ansic=5777,yacc=530 6035 hal ansic=5948,asm=87 1384 loaders asm=1384 720 iface ansic=720 227 services ansic=227 2 top_dir sh=2 0 dk (none) 0 doc (none) 0 media (none)
Totals grouped by language (dominant language first): ansic: 493747 (95.63%) sh: 7648 (1.48%) cpp: 6795 (1.32%) asm: 5039 (0.98%) python: 1741 (0.34%) yacc: 683 (0.13%) pascal: 536 (0.10%) lex: 114 (0.02%)
Total Physical Source Lines of Code (SLOC) = 516,303 Development Effort Estimate, Person-Years (Person-Months) = 141.12 (1,693.41) (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05)) Schedule Estimate, Years (Months) = 3.51 (42.16) (Basic COCOMO model, Months = 2.5 * (person-months**0.38)) Estimated Average Number of Developers (Effort/Schedule) = 40.17 Total Estimated Cost to Develop = $ 19,063,011 (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'."
ReactOS Version 0.2.0.0 -----------------------
SLOC Directory SLOC-by-Language (Sorted) 416457 lib ansic=400265,sh=9031,python=2542,asm=2063,perl=1193, cpp=560,pascal=536,yacc=153,lex=114 128836 drivers ansic=128787,asm=49 116870 subsys ansic=86123,cpp=30747 92486 include ansic=92486 78229 ntoskrnl ansic=76300,asm=1929 50590 apps ansic=43564,cpp=6578,asm=448 25410 tools ansic=18749,cpp=4229,lex=1350,yacc=1082 7008 hal ansic=6921,asm=87 926 loaders asm=926 698 iface ansic=698 571 regtests ansic=571 258 services ansic=258 0 bootdata (none) 0 CVS (none) 0 dk (none) 0 doc (none) 0 media (none) 0 top_dir (none)
Totals grouped by language (dominant language first): ansic: 854722 (93.07%) cpp: 42114 (4.59%) sh: 9031 (0.98%) asm: 5502 (0.60%) python: 2542 (0.28%) lex: 1464 (0.16%) yacc: 1235 (0.13%) perl: 1193 (0.13%) pascal: 536 (0.06%)
Total Physical Source Lines of Code (SLOC) = 918,339 Development Effort Estimate, Person-Years (Person-Months) = 258.33 (3,100.02) (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05)) Schedule Estimate, Years (Months) = 4.42 (53.05) (Basic COCOMO model, Months = 2.5 * (person-months**0.38)) Estimated Average Number of Developers (Effort/Schedule) = 58.44 Total Estimated Cost to Develop = $ 34,897,539 (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'."
ReactOS Version 0.3.0 RC2 -------------------------
SLOC Directory SLOC-by-Language (Sorted) 808659 dll ansic=759391,cpp=25583,asm=8201,sh=8147,python=6029, yacc=1308 322536 lib ansic=301074,sh=13093,asm=3421,python=3160,cpp=924, pascal=536,perl=328 197085 include ansic=192572,cpp=4513 163334 base ansic=121143,cpp=41411,asm=448,sh=332 144607 drivers ansic=144551,asm=56 103080 ntoskrnl ansic=100386,asm=2694 70621 subsystems ansic=70610,asm=11 64180 tools ansic=36412,cpp=19738,yacc=4708,lex=2392,perl=930 48168 regtests ansic=48168 34750 boot ansic=29798,asm=4952 9571 hal ansic=9444,asm=127 47 media ansic=47 0 modules (none) 0 top_dir (none)
Totals grouped by language (dominant language first): ansic: 1813596 (92.22%) cpp: 92169 (4.69%) sh: 21572 (1.10%) asm: 19910 (1.01%) python: 9189 (0.47%) yacc: 6016 (0.31%) lex: 2392 (0.12%) perl: 1258 (0.06%) pascal: 536 (0.03%)
Total Physical Source Lines of Code (SLOC) = 1,966,638 Development Effort Estimate, Person-Years (Person-Months) = 574.70 (6,896.39) (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05)) Schedule Estimate, Years (Months) = 5.99 (71.88) (Basic COCOMO model, Months = 2.5 * (person-months**0.38)) Estimated Average Number of Developers (Effort/Schedule) = 95.94 Total Estimated Cost to Develop = $ 77,634,055 (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'."
Cheers, Martin
From: M Bealby mbealby@gmail.com Subject: Re: [ros-dev] Request: SLOC stats of ReactOS 0.0.1.0, 0.1.0, 0.2.0 & 0.3.0 Date: Thu, 17 Aug 2006 16:20:20 +0100 (BST)
From: "Klemens Friedl" frik85@gmail.com Subject: [ros-dev] Request: SLOC stats of ReactOS 0.0.1.0, 0.1.0, 0.2.0 & 0.3.0 Date: Thu, 17 Aug 2006 16:34:21 +0200
Using sloccount 2.26 on Linux and the zip archives listed above I get the following results.
Note: The 0.0.1.0 download appears to be corrupt (tried multiple mirrors), so I have no results for that version.
I managed to use sloccount on the tarball available from here: http://svn.reactos.org/svn/reactos/tags/ReactOS-0.0.10.tar.gz?view=tar
Here are the results:
ReactOS Version 0.0.1.0 -----------------------
SLOC Directory SLOC-by-Language (Sorted) 29183 include ansic=29183 12270 ntoskrnl ansic=11881,asm=389 1830 lib ansic=1467,cpp=358,asm=5 854 loaders asm=854 0 doc (none) 0 drivers (none) 0 top_dir (none)
Totals grouped by language (dominant language first): ansic: 42531 (96.36%) asm: 1248 (2.83%) cpp: 358 (0.81%)
Total Physical Source Lines of Code (SLOC) = 44,137 Development Effort Estimate, Person-Years (Person-Months) = 10.67 (128.01) (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05)) Schedule Estimate, Years (Months) = 1.32 (15.80) (Basic COCOMO model, Months = 2.5 * (person-months**0.38)) Estimated Average Number of Developers (Effort/Schedule) = 8.10 Total Estimated Cost to Develop = $ 1,441,068 (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'."
Hope this helps, Martin
Klemens Friedl schrieb:
SLOC = source lines of code
I would like to compose some neat statistics about ReactOS (for reactos.org) and I need help of people with unix compatible operating systems (because the only reasonable SLOC scan tool "sloccount") isn't available for Win32. If you get it working with Cygwin, CoLinux, etc. under Win32 it's fine too.
There's a tool for Windows, called Source Code Line Counter, downloadable for example here: http://www.windows-software.de/info-1122.html
**
**
Statistics for current trunk Rev.23603
File Type Number of Files Lines of Code Characters Comments --------------------------------------------------------------------------------------------------------------------------------- *c 3,805 1,918,943 53,644,088 135,241 *.cpp 161 57,366 1,527,584 5,682 *.h 2,425 507,772 18,125,715 57,936 *.s 135 67,900 1,606,495 3,338 *.asm 13 4,388 145,418 1 *.rbuild 437 11,142 328,237 20 --------------------------------------------------------------------------------------------------------------------------------- Sum: 6,976 2,567,511 73,007,537 202,218
FIXMEs: 4337 CHECKMEs: 176
Number of Comments for .asm and .rbuild maybe wrong, but it's neglectable.
Greetings, Timo
****
@ Klemens
Perhaps you could place a script on the reactos.org server which calculates the SLOC of the current trunk about one time a day and posts it on the webpage?
Just a suggestion... ;)
Greetings, Fabian
On 8/18/06, Timo Kreuzer timo.kreuzer@web.de wrote:
Klemens Friedl schrieb: SLOC = source lines of code
I would like to compose some neat statistics about ReactOS (for reactos.org) and I need help of people with unix compatible operating systems (because the only reasonable SLOC scan tool "sloccount") isn't available for Win32. If you get it working with Cygwin, CoLinux, etc. under Win32 it's fine too.
There's a tool for Windows, called Source Code Line Counter, downloadable for example here: http://www.windows-software.de/info-1122.html
Statistics for current trunk Rev.23603
File Type Number of Files Lines of Code Characters Comments
*c 3,805 1,918,943 53,644,088 135,241 *.cpp 161 57,366 1,527,584 5,682 *.h 2,425 507,772 18,125,715 57,936 *.s 135 67,900 1,606,495 3,338 *.asm 13 4,388 145,418 1 *.rbuild 437 11,142 328,237 20
Sum: 6,976 2,567,511 73,007,537 202,218
FIXMEs: 4337 CHECKMEs: 176
Number of Comments for .asm and .rbuild maybe wrong, but it's neglectable.
Greetings, Timo
Ros-dev mailing list Ros-dev@reactos.org http://www.reactos.org/mailman/listinfo/ros-dev
If someone has some time, please post SLOC stats (with the 'SLOCCount' tool) of ReactOS 0.0.1.5, 0.0.2.0, 0.1.5, 0.2.5, 0.2.8 and 0.2.9.
This would allow me to create an even more detailed statistics and graphs.
Thanks in advance!
btw. all statistics will be available on our website soon.
Klemens
Links to source code (or use svn as anderwald has done it):
http://prdownloads.sourceforge.net/reactos/0015-src.zip http://prdownloads.sourceforge.net/reactos/0020_source.zip http://prdownloads.sourceforge.net/reactos/reactos-0.1.5-source.zip http://prdownloads.sourceforge.net/reactos/reactos-0.2.5-src.zip http://prdownloads.sourceforge.net/reactos/reactos0.2.8-REL-src.zip http://prdownloads.sourceforge.net/reactos/reactos0.2.9-REL-src.zip