This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: source mgt. requirements solicitation
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Linus Torvalds <torvalds at transmeta dot com>
- Cc: Bruce Stephens <bruce at cenderis dot demon dot co dot uk>, Pop Sébastian <pop at gauvain dot u-strasbg dot fr>, Momchil Velikov <velco at fadata dot bg>, zack at codesourcery dot com, gcc at gcc dot gnu dot org
- Date: Mon, 16 Dec 2002 11:16:57 -0500
- Subject: Re: source mgt. requirements solicitation
- Organization: Red Hat Canada
- References: <873coy6c27.fsf@cenderis.demon.co.uk> <Pine.LNX.4.44.0212151639520.2445-100000@home.transmeta.com>
On Sun, 15 Dec 2002, Linus Torvalds wrote:
> On Mon, 16 Dec 2002, Bruce Stephens wrote:
> >
> > The gcc tree I have seems to have 4145483 lines
>
> Hmm, might be my mistake. I only have an old and possibly pared-down tree
> online. However, I also counted lines differently: I only counted *.[chS]
> files, and you may have counted everything (the gcc changelogs and .texi
> files in particular are _huge_ if you have a full complement of them
> there).
>
Output of sloccount on a relatively recent snapshot:
-----------------------------------------------------------------------------
SLOC Directory SLOC-by-Language (Sorted)
1274221 gcc ansic=839349,ada=298101,cpp=73596,yacc=23251,asm=20244,
fortran=6934,exp=4706,sh=4430,objc=2751,lex=559,perl=189,awk=111
225571 libjava java=131300,cpp=65054,ansic=27198,exp=1213,perl=782,
awk=24
67452 libstdc++-v3 cpp=49425,ansic=17270,sh=525,exp=193,awk=39
34729 boehm-gc ansic=25682,sh=7631,cpp=972,asm=444
21798 libiberty ansic=21495,perl=283,sed=20
11657 top_dir sh=11657
10376 libbanshee ansic=10376
10358 libf2c ansic=10037,fortran=321
9581 zlib ansic=8309,asm=712,cpp=560
8904 libffi ansic=5545,asm=3359
8002 libobjc ansic=7233,objc=397,cpp=372
3721 contrib cpp=2306,sh=935,perl=324,awk=67,lisp=59,ansic=30
3074 libmudflap ansic=3074
2506 fastjar ansic=2325,sh=181
1463 include ansic=1432,cpp=31
667 maintainer-scripts sh=667
0 config (none)
0 CVS (none)
0 INSTALL (none)
Totals grouped by language (dominant language first):
ansic: 979355 (57.81%)
ada: 298101 (17.60%)
cpp: 192316 (11.35%)
java: 131300 (7.75%)
sh: 26026 (1.54%)
asm: 24759 (1.46%)
yacc: 23251 (1.37%)
fortran: 7255 (0.43%)
exp: 6112 (0.36%)
objc: 3148 (0.19%)
perl: 1578 (0.09%)
lex: 559 (0.03%)
awk: 241 (0.01%)
lisp: 59 (0.00%)
sed: 20 (0.00%)
Total Physical Source Lines of Code (SLOC) = 1,694,080
Development Effort Estimate, Person-Years (Person-Months) = 491.37 (5,896.47)
(Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
Schedule Estimate, Years (Months) = 5.64 (67.73)
(Basic COCOMO model, Months = 2.5 * (person-months**0.38))
Estimated Average Number of Developers (Effort/Schedule) = 87.06
Total Estimated Cost to Develop = $ 66,377,705
(average salary = $56,286/year, overhead = 2.40).
SLOCCount is Open Source Software/Free Software, licensed under the FSF GPL.
Please credit this data as "generated using 'SLOCCount' by David A. Wheeler."
-----------------------------------------------------------------------------
Diego.