Changeset b4f5af8 for BOOK/final-system/common/aboutdebug.xml
- Timestamp:
- Feb 21, 2006, 1:29:15 AM (18 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- db1bc75
- Parents:
- 48c7e86
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-system/common/aboutdebug.xml
r48c7e86 rb4f5af8 11 11 <title>About Debugging Symbols</title> 12 12 13 <para >Most programs and libraries are, by default, compiled with debugging13 <para os="a">Most programs and libraries are, by default, compiled with debugging 14 14 symbols included (with <command>gcc</command>'s <option>-g</option> option). 15 15 This means that when debugging a program or library that was compiled with … … 17 17 addresses, but also the names of the routines and variables.</para> 18 18 19 <para >However, the inclusion of these debugging symbols enlarges a19 <para os="b">However, the inclusion of these debugging symbols enlarges a 20 20 program or library significantly. The following is an example of the 21 21 amount of space these symbols occupy:</para> 22 22 23 <itemizedlist >24 <listitem >23 <itemizedlist os="c"> 24 <listitem os="c1"> 25 25 <para>a bash binary with debugging symbols: 1200 KB</para> 26 26 </listitem> 27 <listitem >27 <listitem os="c2"> 28 28 <para>a bash binary without debugging symbols: 480 KB</para> 29 29 </listitem> 30 <listitem >30 <listitem os="c3"> 31 31 <para>Glibc and GCC files (<filename class="directory">/lib</filename> 32 32 and <filename class="directory">/usr/lib</filename>) with debugging 33 33 symbols: 87 MB</para> 34 34 </listitem> 35 <listitem >35 <listitem os="c4"> 36 36 <para>Glibc and GCC files without debugging symbols: 16 MB</para> 37 37 </listitem> 38 38 </itemizedlist> 39 39 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, 41 41 but when comparing programs with and without debugging symbols, the 42 42 difference will usually be a factor between two and five.</para> 43 43 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, 45 45 a lot of disk space can be regained by removing these symbols. The next 46 46 section shows how to strip all debugging symbols from the programs and
Note: See TracChangeset
for help on using the changeset viewer.