I am trying to figure out how to use valgrind. So far I have merely download and unpacked the .rar file. What should I do next? How may I install it and begin using it? I'd appreciate some guidance.
I am trying to figure out how to use valgrind. So far I have merely download and unpacked the .rar file. What should I do next? How may I install it and begin using it? I'd appreciate some guidance.
I have tried looking for this online, but everything I have come across was rather incomprehensible.
Here is quick instructions for basic installation, coming from the documentation of Valgrind.
I still don't understand. I am in cmd, typing ./configure, as the instructions indicate, and it doesn't work! (should it work, not being an executable?)
You should first extract into a directory the contents of that .rar file you said you downloaded. Then cd into that directory form the terminal (if there's a src/ directory in there, most probably you need to cd into that one ). Then try there what the docs say.
"cmd" as in Windows?
cmd = command prompt, via windows, yes. Did I get it all wrong?
Yeap, Valgrind does not work on Windows. I guess you can do it via Cygwin which is something like a Unix emulator for Windows (actually it is more of a Unix layer upon Win32, but it doesn't really matter here). However, I doubt you'd want to get into that much trouble if you are a Windows kind of guy
Last edited by migf1; 05-24-2013 at 03:53 AM.
Afraid you're out of luck -- valgrind isn't supported on Windows. I'm not sure if there is anything similar -- I search occasionally as I quite like to work on Windows, but I can't think of anything that stood out as promising.
No, you can't use it in Cygwin either. Best shot is probably to install Linux on a VM. Quite a lot of trouble to go to.... valgrind isn't THAT great
Last edited by smokeyangel; 05-24-2013 at 03:58 AM.
So very true
Here's an attempt for bringing Valgrind functionality to Windows. I wish them all the best.
Purify and Insure++ are similar products for Windows, but commercial.
Among free tools, DrMemory is a popular one (there are many others).
For simple tasks however, a simple wrapper over malloc(), calloc(), realloc() and free() should do quite well (like the ancient mss for example... the link pops up an ad window, must be a new thing... didn't do it last time I checked).
Last edited by migf1; 05-24-2013 at 04:21 AM.