Re: A propos du nombre de lignes de code.
> Je ne sais pas par rapport aux autres programmes si ça fait beaucoup.
Le kernel Linux
$ cd /usr/src/linux-source-2.6.12
$ sloccount .
SLOC Directory SLOC-by-Language (Sorted)
2498429 drivers ansic=2491511,asm=2781,yacc=1651,sh=894,perl=829,
lex=763
767169 arch ansic=581653,asm=185097,sh=204,awk=99,python=45,
pascal=41,perl=30
454655 fs ansic=454655
407034 include ansic=405427,asm=1277,cpp=330
353445 sound ansic=353262,asm=183
255426 net ansic=255426
27611 kernel ansic=27611
22229 cluster ansic=22229
19303 scripts ansic=13443,perl=2052,cpp=1429,yacc=952,lex=750,
sh=595,python=82
18866 mm ansic=18866
17256 security ansic=17256
14009 crypto ansic=14009
9511 lib ansic=9511
4566 ipc ansic=4566
2867 Documentation ansic=1499,sh=866,perl=284,lisp=218
2123 init ansic=2123
445 usr ansic=443,asm=2
0 top_dir (none)
Totals grouped by language (dominant language first):
ansic: 4673490 (95.87%)
asm: 189340 (3.88%)
perl: 3195 (0.07%)
yacc: 2603 (0.05%)
sh: 2559 (0.05%)
cpp: 1759 (0.04%)
lex: 1513 (0.03%)
lisp: 218 (0.00%)
python: 127 (0.00%)
awk: 99 (0.00%)
pascal: 41 (0.00%)
Total Physical Source Lines of Code (SLOC) = 4,874,944
Development Effort Estimate, Person-Years (Person-Months) = 1,490.73
(17,888.72)
(Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
Schedule Estimate, Years (Months) = 8.60 (103.26)
(Basic COCOMO model, Months = 2.5 * (person-months**0.38))
Estimated Average Number of Developers (Effort/Schedule) = 173.24
Total Estimated Cost to Develop = $ 201,376,940
(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'."
|