This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Code Bloat g++


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]