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]

Re: Building a C++ program with -D__USE_MALLOC


> 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


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