This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Building a C++ program with -D__USE_MALLOC
- To: yumf at Ultimatech dot COM
- Subject: Re: Building a C++ program with -D__USE_MALLOC
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Wed, 3 Nov 1999 22:40:15 +0100
- CC: gcc at gcc dot gnu dot org, yumf at iago dot ultimatech dot com
- References: <199911022050.MAA04768@iago.ultimatech.com.ultimatech.com>
> If this is not the official way to run purify, please let me know what
> is the right way to do this.
You did not mention what platform you are using, so it is hard to tell
how you have to run purify - please read the purify documentation for
this.
On Solaris, I *never* use -D__USE_MALLOC to run purify. I just run it
in the final linker pass. Purify will, on its own, determine what the
allocation functions are; in particular, it will know what
__builtin_new is, and compute memory statistics based on that.
Hope this helps,
Martin