Hello, does anybody knows if i can use valgrind on my mac just downloading it from valgrind.org ? As the system is unix based i assume it should work but i am not too sure about it ?
thanks in advance.
Unfortunately, no. Valgrind uses a lot of OS and CPU specific functionality, so it must be rewritten for each combination. Look at this table: http://valgrind.org/info/platforms.html. Darwin (the Mac OS X kernel) on x86 is considered "high" priority, which is good news. The bad news is, it's been high priority for at least 4 years or more.
An x86/Darwin is high priority for the Valgrind team, but there is no port for that yet. The web page has a link to a Free BSD port, which is the closest you're going to get. You can download the source and see if it compiles.
Keep in mind there are other options for memory debugging other than Valgrind.
Instruments.app (found somewhere under the Developer/ tree) can trace memory leaks. I haven't used Instruments yet for this purpose, so I can't comment on how it compares to Valgrind. You can read more about it here: