This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How can I release every memory that gcc holds?
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: Hee Jeong <cabbagehead1 at yahoo dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 12 Feb 2004 10:22:35 -0800
- Subject: Re: How can I release every memory that gcc holds?
- References: <20040212102837.25900.qmail@web60004.mail.yahoo.com>
Hee Jeong <cabbagehead1@yahoo.com> writes:
> Hi.
> I'm looking for functions which can release every memory
> that gcc holds after compiling a source file. gcc doesn't
> hold that much, but I have to handle huge number of source
> files, so I have to free that memory.
All memory allocated by GCC is freed when the program exits. Since
the compiler only processes one source file per invocation[1] you
should not have to do anything special.
zw
[1] There is an experimental feature in 3.4 which changes this but I
doubt you are using it.