-fmem-report

kevin diggs diggskevin38@gmail.com
Wed Apr 13 23:37:00 GMT 2011


Hi,

A follow on question, if I may:

Whose string pool is this? The compilers or the program being
compiled? In other words, would a string literal in my code show up in
this pool?

4.3.2 on x86 gives for a small program:

String pool
entries		3004
identifiers	3004 (100.00%)
slots		16384
bytes		34k (4803  overhead)
table size	64k
coll/search	0.0695
ins/search	0.1855
avg. entry	11.93 bytes (+/- 6.49)
longest entry	42

The 100.00% in parens confuses me?

Thanks!

kevin

On Wed, Apr 13, 2011 at 5:27 PM, Ian Lance Taylor <iant@google.com> wrote:
> kevin diggs <diggskevin38@gmail.com> writes:
>
>> What is the identifiers entry in the string pool section of the
>> report? This isn't variable and function names is it?
>
> Why isn't it?
>
> It is all identifiers seen while parsing the program, which does in fact
> include variable and function names.
>
> Ian
>



More information about the Gcc-help mailing list