valgrind for mac

Discussion in 'Mac Programming' started by alexmm, Jun 23, 2008.

  1. macrumors newbie

    Joined:
    May 5, 2008
    #1
    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.
     
  2. macrumors 6502

    Joined:
    Jul 25, 2006
    #2
    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.
     
  3. macrumors 6502a

    yeroen

    Joined:
    Mar 8, 2007
    Location:
    Cambridge, MA
    #3
    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.
     
  4. thread starter macrumors newbie

    Joined:
    May 5, 2008
    #4
    valgrind

    thanks a lot. I only know valgrind. What would be an equivalent running on mac ?
    Thanks again.
     
  5. macrumors 6502a

    yeroen

    Joined:
    Mar 8, 2007
    Location:
    Cambridge, MA
    #5
  6. thread starter macrumors newbie

    Joined:
    May 5, 2008
    #6
    thank you

    I'll have a look. Thanks a lot.
     

Share This Page