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]
Other format: [Raw text]

Re: How can I release every memory that gcc holds?


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.


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