Manpages

Manpage of ccmalloc

ccmalloc

Section: User Manuals (1)
Updated: AUGUST 2001
Index
Return to Main Contents
 

NAME

ccmalloc - Link C++ object files with ccmalloc debugging library  

SYNOPSIS

ccmalloc link line  

DESCRIPTION

ccmalloc is a script that compiles object files from C++ code with the ccmalloc library. The resulting code can be profiled for memory leaks and other bad practices.

A typical project build might look like this:
  
  gcc -c -g -o mod1.o mod1.c            # compilation
  gcc -c -g -o mod2.o mod2.c            # compilation
  gcc -o binary mod1.o mod2.o -lm       # linking

Now you just have to replace the linking command with


  ccmalloc gcc -o binary mod1.o mod2.o -lm      # linking

You should copy /usr/share/doc/ccmalloc/examples/ccmalloc.cfg to .ccmalloc in your project directory and read it carefully.

Don't forget the -g compiler flag if you plan to use a debugger.

 

SEE ALSO

/usr/share/doc/ccmalloc/examples/ccmalloc.cfg[.gz]  

AUTHOR

Armin Biere (manual page by Steve Robbins <smr@debian.org>)


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 18:30:16 GMT, April 16, 2024