Ignore:
Timestamp:
Feb 21, 2006, 1:29:15 AM (18 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
db1bc75
Parents:
48c7e86
Message:

r803@server (orig r801): jim | 2005-12-02 08:36:39 -0800

r880@server: jim | 2005-12-02 08:36:09 -0800
Text Updates from G. Moko


File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-system/common/aboutdebug.xml

    r48c7e86 rb4f5af8  
    1111  <title>About Debugging Symbols</title>
    1212
    13   <para>Most programs and libraries are, by default, compiled with debugging
     13  <para os="a">Most programs and libraries are, by default, compiled with debugging
    1414  symbols included (with <command>gcc</command>'s <option>-g</option> option).
    1515  This means that when debugging a program or library that was compiled with
     
    1717  addresses, but also the names of the routines and variables.</para>
    1818
    19   <para>However, the inclusion of these debugging symbols enlarges a
     19  <para os="b">However, the inclusion of these debugging symbols enlarges a
    2020  program or library significantly. The following is an example of the
    2121  amount of space these symbols occupy:</para>
    2222
    23   <itemizedlist>
    24     <listitem>
     23  <itemizedlist os="c">
     24    <listitem os="c1">
    2525      <para>a bash binary with debugging symbols: 1200 KB</para>
    2626    </listitem>
    27     <listitem>
     27    <listitem os="c2">
    2828      <para>a bash binary without debugging symbols: 480 KB</para>
    2929    </listitem>
    30     <listitem>
     30    <listitem os="c3">
    3131      <para>Glibc and GCC files (<filename class="directory">/lib</filename>
    3232      and <filename class="directory">/usr/lib</filename>) with debugging
    3333      symbols: 87 MB</para>
    3434    </listitem>
    35     <listitem>
     35    <listitem os="c4">
    3636      <para>Glibc and GCC files without debugging symbols: 16 MB</para>
    3737    </listitem>
    3838  </itemizedlist>
    3939
    40   <para>Sizes may vary depending on which compiler and C library were used,
     40  <para os="d">Sizes may vary depending on which compiler and C library were used,
    4141  but when comparing programs with and without debugging symbols, the
    4242  difference will usually be a factor between two and five.</para>
    4343
    44   <para>Because most users will never use a debugger on their system software,
     44  <para os="e">Because most users will never use a debugger on their system software,
    4545  a lot of disk space can be regained by removing these symbols. The next
    4646  section shows how to strip all debugging symbols from the programs and
Note: See TracChangeset for help on using the changeset viewer.