- publishing free software manuals
Valgrind 3.3 - Advanced Debugging and Profiling for GNU/Linux applications
by J. Seward, N. Nethercote, J. Weidendorfer and the Valgrind Development Team
Paperback (6"x9"), 164 pages
ISBN 0954612051
RRP £12.95 ($19.95)

Get a printed copy>>>

2.1 Preparing your program

Compile your program with -g to include debugging information so that Memcheck's error messages include exact line numbers. Using ‘-O0’ is also a good idea, if you can tolerate the slowdown. With ‘-O1’ line numbers in error messages can be inaccurate, although generally speaking Memchecking code compiled at ‘-O1’ works fairly well. Use of ‘-O2’ and above is not recommended as Memcheck occasionally reports uninitialised-value errors which don't really exist.

ISBN 0954612051Valgrind 3.3 - Advanced Debugging and Profiling for GNU/Linux applicationsSee the print edition