⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aboutdebug.html

📁 CLFS(Cross-Compiled Linux From Scratch)的文档 Version CLFS-SVN-20060417
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml">  <head>    <meta http-equiv="Content-Type" content=    "application/xhtml+xml; charset=iso-8859-1" />    <title>      10.67.&nbsp;About Debugging Symbols    </title>    <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />    <meta name="generator" content="DocBook XSL Stylesheets V1.69.1" />    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=    "text/css" media="print" />  </head>  <body id="lfs" class="CLFS-SVN-20060417-x86_64-Multilib">    <div class="navheader">      <div class="headertitles">        <h4>          Cross-Compiled Linux From Scratch - Version          CLFS-SVN-20060417-x86_64-Multilib        </h4>        <h3>          Chapter&nbsp;10.&nbsp;Installing Basic System Software        </h3>      </div>      <ul class="headerlinks">        <li class="prev">          <a accesskey="p" href="grub.html" title="GRUB-0.97">Prev</a>          <p>            GRUB-0.97          </p>        </li>        <li class="next">          <a accesskey="n" href="stripping.html" title="Stripping">Next</a>          <p>            Stripping          </p>        </li>        <li class="up">          <a accesskey="u" href="chapter.html" title=          "Chapter&nbsp;10.&nbsp;Installing Basic System Software">Up</a>.        </li>        <li class="home">          <a accesskey="h" href="../index.html" title=          "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-x86_64-Multilib">          Home</a>        </li>      </ul>    </div>    <div class="sect1" lang="en" xml:lang="en">      <div class="titlepage">        <h1 class="sect1">          10.67. About Debugging Symbols        </h1>      </div>      <p>        Most programs and libraries are, by default, compiled with debugging        symbols included (with <span><strong class=        "command">gcc</strong></span>'s <tt class="option">-g</tt> option).        This means that when debugging a program or library that was compiled        with debugging information included, the debugger can provide not        only memory addresses, but also the names of the routines and        variables.      </p>      <p>        However, the inclusion of these debugging symbols enlarges a program        or library significantly. The following is an example of the amount        of space these symbols occupy:      </p>      <div class="itemizedlist">        <ul>          <li>            <p>              a bash binary with debugging symbols: 1200 KB            </p>          </li>          <li>            <p>              a bash binary without debugging symbols: 480 KB            </p>          </li>          <li>            <p>              Glibc and GCC files (<tt class="filename">/lib</tt>, <tt class=              "filename">/lib64,</tt>, <tt class="filename">/usr/lib</tt>,              and <tt class="filename">/usr/lib64</tt>) with debugging              symbols: 87 MB            </p>          </li>          <li>            <p>              Glibc and GCC files without debugging symbols: 16 MB            </p>          </li>        </ul>      </div>      <p>        Sizes may vary depending on which compiler and C library were used,        but when comparing programs with and without debugging symbols, the        difference will usually be a factor between two and five.      </p>      <p>        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 section shows how to strip all debugging symbols        from the programs and libraries. Additional information on system        optimization can be found at <a href=        "http://www.linuxfromscratch.org/hints/downloads/files/optimization.txt">        <i>http://www.linuxfromscratch.org/hints/downloads/files/optimization.txt</i></a>.      </p>    </div>    <div class="navfooter">      <ul>        <li class="prev">          <a accesskey="p" href="grub.html" title="GRUB-0.97">Prev</a>          <p>            GRUB-0.97          </p>        </li>        <li class="next">          <a accesskey="n" href="stripping.html" title="Stripping">Next</a>          <p>            Stripping          </p>        </li>        <li class="up">          <a accesskey="u" href="chapter.html" title=          "Chapter&nbsp;10.&nbsp;Installing Basic System Software">Up</a>.        </li>        <li class="home">          <a accesskey="h" href="../index.html" title=          "Cross-Compiled Linux From Scratch - Version CLFS-SVN-20060417-x86_64-Multilib">          Home</a>.        </li>      </ul>    </div>  </body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -