Valgrind equvalent

Hey developers:

I'm no developer myself, I'm actually a scientist. For this reason, I find myself having to write up my algorithms in C or C++ in order to enhance its performance (time wise). I'm a linux convert, using most of the standard linux developer programs for my CLI program (gcc, gdb, ddd, valgrind).

A lot of this software is available on OS X (natively or ported), which is why I switched to this environment for my laptop. Yet, I'm wondering if there is any equivalent to Valgrind that you guys use. Here is a quote about what this sofware is for:

Valgrind is an award-winning suite of tools for debugging and profiling Linux programs. With the tools that come with Valgrind, you can automatically detect many memory management and threading bugs, avoiding hours of frustrating bug-hunting, making your programs more stable. You can also perform detailed profiling, to speed up and reduce memory use of your programs.

It has saved my life many times with trying to track down any memory leaks, etc. What do you guys use for this when writing up programs in C or C++? Any advice would be appreciated, because I seem to be the only OS X user in my little circle of geeks.

Posted on Nov 11, 2005 1:30 PM

Reply
2 replies

Nov 11, 2005 3:25 PM in response to Daniel Stein

Thanks Daniel, I downloaded those programs, and I'm playing with them right now.

I'm not familiar with the Xcode environment, I usually work on the command line using emacs as my text editor. How would I run one of these memory checking programs on my binary, a.out?

For instance, I can just run Valgrind on my binary by:

$valgrind --leak-check=yes a.out arg1 arg2

Are there any references for newbies?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Valgrind equvalent

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.