This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Code Bloat g++
- To: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Subject: Re: Code Bloat g++
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- Date: Sat, 19 Feb 2000 11:10:21 +0100 (CET)
- cc: jbuck at possibly dot synopsys dot com, gcc at gcc dot gnu dot org
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/