Removed redundant verbiage. Rewrote a very clumsy sentence.

To speak of a difference (implying subtraction) and a factor
(multiplication) as equivalent is confusing at best.
This commit is contained in:
David Bryant 2022-12-20 09:26:41 -06:00
parent d15c80e1b4
commit a613960c4b

View File

@ -17,8 +17,8 @@
the debugger can provide not only memory addresses, but also the debugger can provide not only memory addresses, but also
the names of the routines and variables.</para> the names of the routines and variables.</para>
<para>However, the inclusion of these debugging symbols enlarges a <para>The inclusion of these debugging symbols enlarges a
program or library significantly. The following is an example of the program or library significantly. Here are two examples of the
amount of space these symbols occupy:</para> amount of space these symbols occupy:</para>
<itemizedlist> <itemizedlist>
@ -28,7 +28,7 @@
</listitem> </listitem>
<listitem> <listitem>
<para>A <command>bash</command> binary without debugging symbols: <para>A <command>bash</command> binary without debugging symbols:
480 KB</para> 480 KB (60% smaller)</para>
</listitem> </listitem>
<listitem> <listitem>
<para>Glibc and GCC files (<filename class="directory">/lib</filename> <para>Glibc and GCC files (<filename class="directory">/lib</filename>
@ -36,15 +36,14 @@
symbols: 87 MB</para> symbols: 87 MB</para>
</listitem> </listitem>
<listitem> <listitem>
<para>Glibc and GCC files without debugging symbols: 16 MB</para> <para>Glibc and GCC files without debugging symbols: 16 MB (82% smaller)</para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
<para>Sizes may vary depending on which compiler and C library were used, <para>Sizes will vary depending on which compiler and C library were used,
but when comparing programs with and without debugging symbols, the but a program that has been stripped of debugging symbols is usually some
difference will usually be a factor between two and five.</para> 50% to 80% smaller than its unstripped counterpart.
Because most users will never use a debugger on their system software,
<para>Because most users will never use a debugger on their system software,
a lot of disk space can be regained by removing these symbols. The next a lot of disk space can be regained by removing these symbols. The next
section shows how to strip all debugging symbols from the programs and section shows how to strip all debugging symbols from the programs and
libraries.</para> libraries.</para>