jacob navia wrote, On 19/06/08 12:11:
How to use a non-standard library is not topical here. It will depend on
your compiler/OS and maybe other things and so would be appropriate in a
group dedicated to your implementation or maybe mailing lists for
Boehm's GC.
The most popular garbage collector is Boehm's GC. It works with gcc
(you need to install it separatedly).
You stated in your previous post, "Good compilers provide this facility
in their standard distribution."
Installed separately is *not* "in their standard distribution". I also
believe that MS do not ship it as part of their implementation nor do
Intel and a lot of people consider one or both of those to be good
compilers.
Also are you sure it is available for *all* targets supported by gcc?
For a start I see no mention of lots of the systems that gcc supports.
lcc-win (
http://www.cs.virginia.edu/~lcc-win32) features a GC in
the standard distribution.
Note that if you download lcc-win, you can use gc.dll (32 bits
only) with another compiler if you wish. That would make it
possible to use a GC with ANY windows compiler.
So?
Boehm's GC runs in almost all serious operating systems,
I saw no mention of, to take a few, z/OS, z/TPF or vxWorks to name just
three serious operating systems with completely different markets.
wchich
includes several varints of HP unix, linux, MAC os, etc.
This is not what the web site says. It says:
| The collector is not completely portable, but the distribution
| includes ports to most standard PC and UNIX/Linux platforms. The
| collector should work on Linux, *BSD, recent Windows versions, MacOS
| X, HP/UX, Solaris, Tru64, Irix and a few other operating systems. Some
| ports are more polished than others.
Note the last part, "some ports are more polished than others," which
implies there are still problems with some of the ports it lists.
lcc-win has ported the GC to 64 bit windows and will be
distributed with the 64 bit version of lcc-win.
So? The worls of serious OSs is much larger than that.