Question about boehmgc

Fergus Henderson fjh@cs.mu.oz.au
Tue Apr 1 08:00:00 GMT 2003


On 24-Mar-2003, Lars Segerlund <lars.segerlund@comsys.se> wrote:
> 
>  Is the garbage the only way to handle memory currently under gcc ?
> 
>  I.e. was the old memory handling removed when the garbage was introduced ?
> 
>  I am asking since I am looking into gcc memory use and alloction, ( 
> trying to learn what goes on ).

Your question here doesn't match the subject line.

Garbage collection is used for two different purposes in GCC.
Firstly, the memory that GCC itself allocates when compiling programs
is reclaimed by garbage collection.  This process does not use
the Boehm collector, it uses a custom built collector just for GCC.
Yes, the old memory handling (which used "obstacks") was removed when
this custom collector was introduced.

Secondly, for some languages supported by GCC, e.g. Java, the compiled
program that GCC generates will use garbage collection.  This is where
the Boehm collector gets used.  GCC will link the Boehm collector with
your compiled code.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.

--------------------------------------------------------------------
This message could not be encrypted because no digital certificate
was found for your address. However, you can encrypt your reply with
the certificate attached below. Details at www.unicrypt.com.au

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3083 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20030401/af7dd6d9/attachment.bin>


More information about the Gcc mailing list