主题:几个著名的C/Cpp库和应用软件规模
// boost1.45 (in C++)
空行数,Blank Lines 161,933
类数目,Classes 3,281
代码行数,Code Lines 688,199
注释行数,Comment Lines 219,317
注释和代码的比例,Comment to Code Ratio 0.32
声明语句数目,Declarative Statements 370,206
可执行语句数目,Executable Statements 156,987
文件数,Files 7,290
函数数目,Functions 55,664
无效行数,Inactive Lines 100,944
总行数,Lines 1,271,761
// STL port5.2.1 (in C++)
Blank Lines 8,769
Classes 56
Code Lines 31,173
Comment Lines 9,633
Comment to Code Ratio 0.31
Declarative Statements 29,410
Executable Statements 4,634
Files 253
Functions 3,458
Inactive Lines 13,093
Lines 68,760
----------------------------------
// Applications, IDE (in C++)
// Code::Blocks 10.02
Blank Lines 63,167
Classes 1,104
Code Lines 310,091
Comment Lines 100,521
Comment to Code Ratio 0.32
Declarative Statements 80,373
Executable Statements 154,626
Files 1,732
Functions 18,319
Inactive Lines 26,548
Lines 519,908
----------------------------------
Linux kernel (most C and some assembly)
// Linux kernel 2.6.36.1
Blank Lines 1,546,336
Classes 9
Code Lines 6,862,697
Comment Lines 2,245,905
Comment to Code Ratio 0.33
Declarative Statements 1,549,228
Executable Statements 3,858,419
Files 28,001
Functions 265,688
Inactive Lines 959,869
Lines 12,214,120
空行数,Blank Lines 161,933
类数目,Classes 3,281
代码行数,Code Lines 688,199
注释行数,Comment Lines 219,317
注释和代码的比例,Comment to Code Ratio 0.32
声明语句数目,Declarative Statements 370,206
可执行语句数目,Executable Statements 156,987
文件数,Files 7,290
函数数目,Functions 55,664
无效行数,Inactive Lines 100,944
总行数,Lines 1,271,761
// STL port5.2.1 (in C++)
Blank Lines 8,769
Classes 56
Code Lines 31,173
Comment Lines 9,633
Comment to Code Ratio 0.31
Declarative Statements 29,410
Executable Statements 4,634
Files 253
Functions 3,458
Inactive Lines 13,093
Lines 68,760
----------------------------------
// Applications, IDE (in C++)
// Code::Blocks 10.02
Blank Lines 63,167
Classes 1,104
Code Lines 310,091
Comment Lines 100,521
Comment to Code Ratio 0.32
Declarative Statements 80,373
Executable Statements 154,626
Files 1,732
Functions 18,319
Inactive Lines 26,548
Lines 519,908
----------------------------------
Linux kernel (most C and some assembly)
// Linux kernel 2.6.36.1
Blank Lines 1,546,336
Classes 9
Code Lines 6,862,697
Comment Lines 2,245,905
Comment to Code Ratio 0.33
Declarative Statements 1,549,228
Executable Statements 3,858,419
Files 28,001
Functions 265,688
Inactive Lines 959,869
Lines 12,214,120