Code Bloat g++

Gerald Pfeifer pfeifer@dbai.tuwien.ac.at
Sat Feb 19 02:10:00 GMT 2000


On Sat, 19 Feb 2000, Martin v. Loewis wrote:
>>   deneb[112]: wc -l generate.ii
>>    29131
>> 
>>   deneb[114]: grep LLBB generate.s | wc -l
>>    86672
>> That is, we have three times as many lexical blocks as lines of
>> preprocessed code.
> Counting lexical blocks is perhaps also easier with
> 
> tr -cd '{' <generate.ii | wc -c

That one results in just 3310, but, as you mentioned, inline functions
do not appear to be counted properly that way, and our code is STL- and
inline heavy; on the other hand a lot of functions in headers is never
used by that specific source file.

Gerald
-- 
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/



More information about the Gcc mailing list