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
|
.TH ccmalloc 1 "AUGUST 2001" "Library Configuration" "User Manuals"
.SH NAME
ccmalloc \- Link C++ object files with ccmalloc debugging library
.SH SYNOPSIS
.B ccmalloc
.I link line
.SH DESCRIPTION
.B 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
.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
(manual page by Steve Robbins <smr@debian.org>)
|