to Valgrind version 2.4.0; some of the information is not quite right for
earlier versions.</para>
-<sect1>
+<sect1 id="quick-start.prepare"
+ xreflabel="Preparing your program">
<title>Preparing your program</title>
<para>Compile your program with <computeroutput>-g</computeroutput> to include
debugging information so that Memcheck's error messages include exact line
numbers.</para>
</sect1>
-<sect1>
+<sect1 id="quick-start.mcrun"
+ xreflabel="Running your program under Memcheck">
<title>Running your program under Memcheck</title>
<para>If you normally run your program like this:
and leaks that it detects.</para>
</sect1>
-<sect1>
+<sect1 id="quick-start.interpret"
+ xreflabel="Interpreting Memcheck's output">
<title>Interpreting Memcheck's output</title>
<para>Here's an example C program with a memory error and a memory leak.
examples of all the error messages Memcheck produces.</para>
</sect1>
-<sect1>
+<sect1 id="quick-start.caveats" xreflabel="Caveats">
<title>Caveats</title>
<para>Memcheck is not perfect; it occasionally produces false positives,
and there are mechanisms for suppressing these (see
allocated statically or on the stack.</para>
</sect1>
-<sect1>
+<sect1 id="quick-start.info" xreflabel="More Information">
<title>More information</title>
<para>Please consult the <xref linkend="FAQ"/> and the
<xref linkend="manual"/>, which have much more information. Note that the
before the pointer actually returned. This implies a
variable-sized overhead in what's returned by
<computeroutput>new</computeroutput> or
-<computeroutput>new[]</computeroutput>. It rather surprising how
-compilers
-<footnote>
- <para>[Ed: runtime-support libraries ?]</para>
-</footnote>
-are robust to mismatch in <computeroutput>new</computeroutput> /
-<computeroutput>delete</computeroutput>
-<computeroutput>new[]</computeroutput> /
-<computeroutput>delete[]</computeroutput>.</para>
-
+<computeroutput>new[]</computeroutput>.
</sect2>