Wiki source for valgrind


Show raw source

{{include tonguesValgrind}}
[[HomePage]] > [[SoftwareIndex Software Index]] > [[SoftwareDevelopment Development]]

====valgrind====
~Valgrind is an instrumentation framework for building dynamic analysis tools. There are Valgrind tools that can automatically detect many memory management and threading bugs, and profile your programs in detail. You can also use Valgrind to build new tools.

==Installing from commandline==
~The following steps can be used to install valgrind from the commandline (courtesy of 'Learn to Code the Hard Way').

~%%
# 1) Download it (use wget if you don't have curl)
curl -O http://valgrind.org/downloads/valgrind-3.6.1.tar.bz2

# use md5sum to make sure it matches the one on the site
md5sum valgrind-3.6.1.tar.bz2

# 2) Unpack it.
tar -xjvf valgrind-3.6.1.tar.bz2

# cd into the newly created directory
cd valgrind-3.6.1

# 3) configure it
./configure

# 4) make it
make

# 5) install it (switch to root if necessary)
make install
%%

==Also on the Wiki==
~[[C]]
~[[Make]]
~[[tar]]
~[[md5sum]]

==Related Webpages==
~[[http://valgrind.org/ Valgrind homepage]]
~[[http://c.learncodethehardway.org/book/ex4.html 'C' Learn Code the Hard Way (ex4)]]

----
==Categories==
CategoryDevelopment
CategoryCommandline
CategorySoftware
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki