1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> 4<title>3.�README</title> 5<link rel="stylesheet" href="vg_basic.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.75.2"> 7<link rel="home" href="index.html" title="Valgrind Documentation"> 8<link rel="up" href="dist.html" title="Valgrind Distribution Documents"> 9<link rel="prev" href="dist.news.html" title="2.�NEWS"> 10<link rel="next" href="dist.readme-missing.html" title="4.�README_MISSING_SYSCALL_OR_IOCTL"> 11</head> 12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13<div><table class="nav" width="100%" cellspacing="3" cellpadding="3" border="0" summary="Navigation header"><tr> 14<td width="22px" align="center" valign="middle"><a accesskey="p" href="dist.news.html"><img src="images/prev.png" width="18" height="21" border="0" alt="Prev"></a></td> 15<td width="25px" align="center" valign="middle"><a accesskey="u" href="dist.html"><img src="images/up.png" width="21" height="18" border="0" alt="Up"></a></td> 16<td width="31px" align="center" valign="middle"><a accesskey="h" href="index.html"><img src="images/home.png" width="27" height="20" border="0" alt="Up"></a></td> 17<th align="center" valign="middle">Valgrind Distribution Documents</th> 18<td width="22px" align="center" valign="middle"><a accesskey="n" href="dist.readme-missing.html"><img src="images/next.png" width="18" height="21" border="0" alt="Next"></a></td> 19</tr></table></div> 20<div class="chapter" title="3.�README"> 21<div class="titlepage"><div><div><h2 class="title"> 22<a name="dist.readme"></a>3.�README</h2></div></div></div> 23<div class="literallayout"><p><br> 24������<br> 25Release�notes�for�Valgrind<br> 26~~~~~~~~~~~~~~~~~~~~~~~~~~<br> 27If�you�are�building�a�binary�package�of�Valgrind�for�distribution,<br> 28please�read�README_PACKAGERS.��It�contains�some�important�information.<br> 29<br> 30If�you�are�developing�Valgrind,�please�read�README_DEVELOPERS.��It�contains<br> 31some�useful�information.<br> 32<br> 33For�instructions�on�how�to�build/install,�see�the�end�of�this�file.<br> 34<br> 35If�you�have�problems,�consult�the�FAQ�to�see�if�there�are�workarounds.<br> 36<br> 37<br> 38Executive�Summary<br> 39~~~~~~~~~~~~~~~~~<br> 40Valgrind�is�a�framework�for�building�dynamic�analysis�tools.�There�are<br> 41Valgrind�tools�that�can�automatically�detect�many�memory�management<br> 42and�threading�bugs,�and�profile�your�programs�in�detail.�You�can�also<br> 43use�Valgrind�to�build�new�tools.<br> 44<br> 45The�Valgrind�distribution�currently�includes�six�production-quality<br> 46tools:�a�memory�error�detector,�two�thread�error�detectors,�a�cache<br> 47and�branch-prediction�profiler,�a�call-graph�generating�cache�abd<br> 48branch-prediction�profiler,�and�a�heap�profiler.�It�also�includes<br> 49three�experimental�tools:�a�heap/stack/global�array�overrun�detector,<br> 50a�different�kind�of�heap�profiler,�and�a�SimPoint�basic�block�vector<br> 51generator.<br> 52<br> 53Valgrind�is�closely�tied�to�details�of�the�CPU,�operating�system�and�to<br> 54a�lesser�extent,�compiler�and�basic�C�libraries.�This�makes�it�difficult<br> 55to�make�it�portable.��Nonetheless,�it�is�available�for�the�following<br> 56platforms:�<br> 57<br> 58-�x86/Linux<br> 59-�AMD64/Linux<br> 60-�PPC32/Linux<br> 61-�PPC64/Linux<br> 62-�ARM/Linux<br> 63-�x86/MacOSX<br> 64-�AMD64/MacOSX<br> 65<br> 66Note�that�AMD64�is�just�another�name�for�x86-64,�and�Valgrind�runs�fine<br> 67on�Intel�processors.��Also�note�that�the�core�of�MacOSX�is�called<br> 68"Darwin"�and�this�name�is�used�sometimes.<br> 69<br> 70Valgrind�is�licensed�under�the�GNU�General�Public�License,�version�2.�<br> 71Read�the�file�COPYING�in�the�source�distribution�for�details.<br> 72<br> 73However:�if�you�contribute�code,�you�need�to�make�it�available�as�GPL<br> 74version�2�or�later,�and�not�2-only.<br> 75<br> 76<br> 77Documentation<br> 78~~~~~~~~~~~~~<br> 79A�comprehensive�user�guide�is�supplied.��Point�your�browser�at<br> 80$PREFIX/share/doc/valgrind/manual.html,�where�$PREFIX�is�whatever�you<br> 81specified�with�--prefix=�when�building.<br> 82<br> 83<br> 84Building�and�installing�it<br> 85~~~~~~~~~~~~~~~~~~~~~~~~~~<br> 86To�install�from�the�Subversion�repository�:<br> 87<br> 88��0.�Check�out�the�code�from�SVN,�following�the�instructions�at<br> 89�����http://www.valgrind.org/downloads/repository.html.<br> 90<br> 91��1.�cd�into�the�source�directory.<br> 92<br> 93��2.�Run�./autogen.sh�to�setup�the�environment�(you�need�the�standard<br> 94�����autoconf�tools�to�do�so).<br> 95<br> 96��3.�Continue�with�the�following�instructions...<br> 97<br> 98To�install�from�a�tar.bz2�distribution:<br> 99<br> 100��4.�Run�./configure,�with�some�options�if�you�wish.��The�only�interesting<br> 101�����one�is�the�usual�--prefix=/where/you/want/it/installed.<br> 102<br> 103��5.�Run�"make".<br> 104<br> 105��6.�Run�"make�install",�possibly�as�root�if�the�destination�permissions<br> 106�����require�that.<br> 107<br> 108��7.�See�if�it�works.��Try�"valgrind�ls�-l".��Either�this�works,�or�it<br> 109�����bombs�out�with�some�complaint.��In�that�case,�please�let�us�know<br> 110�����(see�www.valgrind.org).<br> 111<br> 112Important!��Do�not�move�the�valgrind�installation�into�a�place<br> 113different�from�that�specified�by�--prefix�at�build�time.��This�will<br> 114cause�things�to�break�in�subtle�ways,�mostly�when�Valgrind�handles<br> 115fork/exec�calls.<br> 116<br> 117<br> 118The�Valgrind�Developers<br> 119<br> 120����</p></div> 121</div> 122<div> 123<br><table class="nav" width="100%" cellspacing="3" cellpadding="2" border="0" summary="Navigation footer"> 124<tr> 125<td rowspan="2" width="40%" align="left"> 126<a accesskey="p" href="dist.news.html"><<�2.�NEWS</a>�</td> 127<td width="20%" align="center"><a accesskey="u" href="dist.html">Up</a></td> 128<td rowspan="2" width="40%" align="right">�<a accesskey="n" href="dist.readme-missing.html">4.�README_MISSING_SYSCALL_OR_IOCTL�>></a> 129</td> 130</tr> 131<tr><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td></tr> 132</table> 133</div> 134</body> 135</html> 136