Changeset ef13657 for chapter06/aboutdebug.xml
- Timestamp:
- 08/08/2004 02:11:09 AM (20 years ago)
- Branches:
- 6.0
- Children:
- 5ba3d1d
- Parents:
- 6e41459
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/aboutdebug.xml
r6e41459 ref13657 8 8 <?dbhtml filename="aboutdebug.html"?> 9 9 10 <para>Most programs and libraries are, by default, compiled with debugging 11 symbols included (with <command>gcc</command>'s <parameter>-g</parameter> 12 option). This means that, when debugging a program or library that was compiled 13 with debugging information included, the debugger can give you not only memory 14 addresses but also the names of the routines and variables.</para> 10 <para>Most programs and libraries are, by default, compiled with 11 debugging symbols included (with <command>gcc</command>'s 12 <parameter>-g</parameter> option). This means that when debugging a 13 program or library that was compiled with debugging information 14 included, the debugger can provide not only memory addresses, but also 15 the names of the routines and variables.</para> 16 17 <para>However, the inclusion of these debugging symbols enlarges a 18 program or library significantly. The following is an example of the 19 amount of space these symbols occupy:</para> 15 20 16 <para>The inclusion of these debugging symbols, however, enlarges a program or17 library significantly. To get an idea of the amount of space these symbols18 occupy, have a look at the following:</para>19 20 21 <itemizedlist> 21 22 … … 35 36 </itemizedlist> 36 37 37 <para>Sizes may vary somewhat, depending on which compiler was used and which C 38 library, but when comparing programs with and without debugging symbols the 39 difference will generally be a factor between 2 and 5.</para> 38 <para>Sizes may vary depending on which compiler was used and which C 39 library, but when comparing programs with and without debugging 40 symbols, the difference will usually be a factor between two and 41 five.</para> 40 42 41 <para>As most people will probably never use a debugger on their system 42 software, a lot of disk space can be regained by removing these symbols. For 43 your convenience, the next section shows how to strip all debugging symbols 44 from all programs and libraries. Information on other ways of optimizing your 45 system can be found in the hint at <ulink url="&hints-root;optimization.txt"/>.</para> 43 <para>Because most users will never use a debugger on their system 44 software, a lot of disk space can be regained by removing these 45 symbols. The next section shows how to strip all debugging symbols 46 from the programs and libraries. Information on other ways of 47 optimizing a system can be found in the hint at <ulink 48 url="&hints-root;optimization.txt"/>.</para> 46 49 47 50 </sect1> 51
Note:
See TracChangeset
for help on using the changeset viewer.