Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

alexmm

macrumors newbie
Original poster
May 5, 2008
9
0
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.
 

kpua

macrumors 6502
Jul 25, 2006
294
0
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.
 

yeroen

macrumors 6502a
Mar 8, 2007
944
2
Cambridge, MA
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.
 

alexmm

macrumors newbie
Original poster
May 5, 2008
9
0
valgrind

thanks a lot. I only know valgrind. What would be an equivalent running on mac ?
Thanks again.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.