1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
.TH ccmalloc 1 "MAY 2002" "Library Configuration" "User Manuals"
.SH NAME
ccmalloc \- Link C++ object files with ccmalloc debugging library
.SH SYNOPSIS
.B ccmalloc
.BI [ " --no-wrapper " ]
.BI [ " gcc | g++ " ]
.BI [ " compiler-option ... " ]
.BI file ...
.SH DESCRIPTION
.B ccmalloc
is a script that compiles object files from C or C++ code with the ccmalloc
library. The resulting code can be profiled for memory leaks and
other bad practices.
The script is used as a replacement of the link line. When used
with C++ code, simply prefix the command line with
.B ccmalloc.
For example, if you normally link your program using
g++ -o binary mod1.o mod2.o -lm
you simply use the following instead
ccmalloc g++ -o binary mod1.o mod2.o -lm
With C code, prefix the command line instead with
.B ccmalloc --no-wrapper
to disable the C++ wrapper. Linking C code with the
C++ wrapper results in unresolved symbols.
Note that only
.B gcc,
.B g++,
and
.B g++-2.95
(on systems that have GCC 2.95) are recognized as compilers.
You should copy
.I /usr/share/doc/ccmalloc/examples/ccmalloc.cfg
to
.I .ccmalloc
in your project directory and read it carefully.
Don't forget the
.I -g
compiler flag if you plan to use a debugger.
.SH "SEE ALSO"
.BR /usr/share/doc/ccmalloc/examples/ccmalloc.cfg[.gz]
.SH AUTHOR
Armin Biere
|