Today I suddenly, I remembered about SLOC and tried it on my Ace project. And here is the output
Sam@samxp /cygdrive/e/Projects$ sloccount ace_test/srcCreating filelist for appCreating filelist for driversCreating filelist for includeCreating filelist for kernelCreating filelist for libHave a non-directory at the top, so creating directory top_dirAdding /cygdrive/e/Projects/ace_test/src/wscript to top_dirCategorizing files.Finding a working MD5 command....Found a working MD5 command.Computing results.SLOC Directory SLOC-by-Language (Sorted)13716 include ansic=13699,sh=179045 kernel ansic=8810,asm=221,python=143712 lib ansic=3691,sh=11,python=101062 drivers ansic=1051,python=1141 top_dir python=4110 app ansic=6,python=4Totals grouped by language (dominant language first):ansic: 27257 (98.81%)asm: 221 (0.80%)python: 80 (0.29%)sh: 28 (0.10%)Total Physical Source Lines of Code (SLOC) = 27,586Development Effort Estimate, Person-Years (Person-Months) = 6.51 (78.15)(Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))Schedule Estimate, Years (Months) = 1.09 (13.10)(Basic COCOMO model, Months = 2.5 * (person-months**0.38))Estimated Average Number of Developers (Effort/Schedule) = 5.97Total Estimated Cost to Develop = $ 879,761(average salary = $56,286/year, overhead = 2.40).SLOCCount, Copyright (C) 2001-2004 David A. WheelerSLOCCount is Open Source Software/Free Software, licensed under the GNU GPL.SLOCCount comes with ABSOLUTELY NO WARRANTY, and you are welcome toredistribute 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'."
Pretty cool isnt it? :)