This is the mail archive of the
mailing list for the GCC project.
Re: [RFC] cleanup frontend GC memory (decls and types)
- From: Tom Tromey <tromey at redhat dot com>
- To: Michael Matz <matz at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 06 Mar 2008 11:13:37 -0700
- Subject: Re: [RFC] cleanup frontend GC memory (decls and types)
- References: <Pine.LNX.email@example.com>
- Reply-to: tromey at redhat dot com
>>>>> "Michael" == Michael Matz <firstname.lastname@example.org> writes:
Michael> I'm not 100% sure what to make of this and if it's even
Michael> worthwhile to continue on this path, so I'm asking for
Michael> comments. Anyway, what I wanted to look at is to reduce the
Michael> memory overhead of the (C++) frontend, after it is basically
Michael> done with it's work, i.e. at the end of the IPA passes.
I'm curious to know whether and how this affects build times.
Michael> Then I iterate over all things (identifiers, types and decls)
Michael> and zero out several fields
FWIW I have a patch to let the GC reclaim identifiers. In my patch,
after parsing the identifier table is turned into a weak hash. This
may eliminate the need to walk the identifier table.
I'll try to submit this soon.