123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
- <!ENTITY % general-entities SYSTEM "../general.ent">
- %general-entities;
- ]>
- <sect1 id="ch-system-gcc" role="wrap">
- <?dbhtml filename="gcc.html"?>
- <sect1info condition="script">
- <productname>gcc</productname>
- <productnumber>&gcc-version;</productnumber>
- <address>&gcc-url;</address>
- </sect1info>
- <title>GCC-&gcc-version;</title>
- <indexterm zone="ch-system-gcc">
- <primary sortas="a-GCC">GCC</primary>
- </indexterm>
- <sect2 role="package">
- <title/>
- <para>GCC 软件包包含 GNU 编译器集合,其中有 C 和 C++ 编译器。</para>
- <segmentedlist>
- <segtitle>&buildtime;</segtitle>
- <segtitle>&diskspace;</segtitle>
- <seglistitem>
- <seg>&gcc-ch6-sbu;</seg>
- <seg>&gcc-ch6-du;</seg>
- </seglistitem>
- </segmentedlist>
- </sect2>
- <sect2 role="installation">
- <title>安装 GCC</title>
- <para>在 x86_64 上构建时,修改存放 64 位库的默认路径为
- <quote>lib</quote>:</para>
- <screen><userinput remap="pre">case $(uname -m) in
- x86_64)
- sed -e '/m64=/s/lib64/lib/' \
- -i.orig gcc/config/i386/t-linux64
- ;;
- esac</userinput></screen>
- <para>GCC 文档推荐在专用的构建目录中构建 GCC:</para>
- <screen><userinput remap="pre">mkdir -v build
- cd build</userinput></screen>
- <para>准备安装 GCC:</para>
- <screen><userinput remap="configure">SED=sed \
- ../configure --prefix=/usr \
- --enable-languages=c,c++ \
- --disable-multilib \
- --disable-bootstrap \
- --with-system-zlib</userinput></screen>
- <!--para>Note that for other languages, there are some prerequisites that
- are not yet available. See the
- <ulink url="&blfs-book;general/gcc.html">BLFS Book</ulink>
- for instructions on how to build all of GCC's supported languages.</para-->
- <para>请注意,对于其他语言,还有一些尚未满足的依赖项。
- 阅读<ulink url="&blfs-book;general/gcc.html">BLFS 手册</ulink>,
- 以了解如何构建 GCC 支持的所有语言。</para>
- <variablelist>
- <title>新的配置选项的含义:</title>
- <varlistentry>
- <term><envar>SED=sed</envar></term>
- <listitem>
- <para>设定该环境变量,防止路径 /tools/bin/sed
- 被硬编码到编译结果中。</para>
- </listitem>
- </varlistentry>
- <!--
- <varlistentry>
- <term><parameter>- -disable-libmpx</parameter></term>
- <listitem>
- <para>这个开关告诉 GCC 不要构建 mpx (内存保护扩展),
- 它在一些处理器上会导致问题,且在下一个 GCC 版本中已被移除。</para>
- </listitem>
- </varlistentry>
- -->
- <varlistentry>
- <term><parameter>--with-system-zlib</parameter></term>
- <listitem>
- <para>该选项使得 GCC 链接到系统安装的 Zlib 库,而不是它自带的
- Zlib 副本。</para>
- </listitem>
- </varlistentry>
- </variablelist>
- <para>编译该软件包:</para>
- <screen><userinput remap="make">make</userinput></screen>
- <important>
- <para>本节中 GCC 的测试套件被认为是关键的,无论如何不能跳过。</para>
- </important>
- <para>已知 GCC 测试套件中的一组测试可能耗尽栈空间,
- 因此运行测试前要增加栈空间:</para>
- <screen><userinput remap="test">ulimit -s 32768</userinput></screen>
- <para>以非特权用户身份测试编译结果,但出错时继续执行其他测试:</para>
- <screen><userinput remap="test">chown -Rv nobody .
- su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
- <para>输入以下命令查看测试结果的摘要:</para>
- <screen><userinput remap="test">../contrib/test_summary</userinput></screen>
- <para>如果只想看摘要,将输出用管道送至
- <userinput>grep -A7 Summ</userinput>。</para>
- <para>可以将结果与 <ulink
- url="&test-results;"/> 和
- <ulink url="https://gcc.gnu.org/ml/gcc-testresults/"/>
- 的结果进行比较。</para>
- <para>已知有 6 个关于 get_time 的测试会失败。
- 它们似乎与 en_HK locale 有关。</para>
- <para>已知 experimental/net 目录中名为 lookup.cc 和 reverse.cc
- 的两个测试在 LFS chroot 环境中会失败,因为它们需要 /etc/hosts 和
- iana-etc。</para>
- <para>已知名为 pr57193.c 和 pr90178.c 的测试会失败。</para>
- <!--para>A few unexpected failures cannot always be avoided. The GCC developers
- are usually aware of these issues, but have not resolved them yet.
- In particular, six tests in the libstdc++ test suite are known to fail
- when running as the root user as we do here.
- Unless the test results are vastly different from those at the above URL,
- it is safe to continue.</para-->
- <para>少量意外的失败有时无法避免,GCC 开发者一般知道这类问题,
- 但尚未解决它们。
- 我们可以继续安全地构建系统,除非测试结果和以上 URL 的结果截然不同。
- </para>
- <!--note><para>
- <!- -On some combinations of kernel configuration and AMD processors
- On some combinations of kernel configuration and AMD processors
- there may be more than 1100 failures in the gcc.target/i386/mpx
- tests (which are designed to test the MPX option on recent
- Intel processors). These can safely be ignored on AMD
- processors. These tests will also fail on Intel processors if MPX support
- is not enabled in the kernel even though it is present on the CPU.- ->
- 在某些 AMD 处理器上,一些特定的内核配置可以导致 gcc.target/i386/mpx
- 中的 1100 多个测试失败(它们被设计为在较新的 Intel 处理器上测试 MPX
- 选项)。在 AMD 处理器上可以安全地忽略这些失败。
- 另外,如果在内核配置中没有启用 MPX,即使在支持 MPX 的 Intel CPU 上,
- 这些测试也会失败。
- </para></note-->
- <para>安装该软件包,并移除一个不需要的目录:</para>
- <screen><userinput remap="install">make install
- rm -rf /usr/lib/gcc/$(gcc -dumpmachine)/9.1.0/include-fixed/bits/</userinput></screen>
- <para>GCC 构建目录目前属于用户 <systemitem class="username">
- nobody</systemitem>,
- 这会导致安装的头文件目录(及其内容)具有不正确的所有权。
- 将所有者修改为
- <systemitem class="username">root</systemitem> 用户和组:</para>
- <screen><userinput remap="install">chown -v -R root:root \
- /usr/lib/gcc/*linux-gnu/&gcc-version;/include{,-fixed}</userinput></screen>
- <para>创建一个 <ulink
- url="https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s09.html">FHS</ulink>
- 因 <quote>历史原因</quote> 要求的符号链接:</para>
- <screen><userinput remap="install">ln -sv ../usr/bin/cpp /lib</userinput></screen>
- <para>许多软件包使用 <command>cc</command> 调用 C 编译器。为了满足它们,
- 创建一个符号链接:</para>
- <screen><userinput remap="install">ln -sv gcc /usr/bin/cc</userinput></screen>
- <para>创建一个兼容性符号链接,以支持在构建程序时使用链接时优化(LTO):
- </para>
- <screen><userinput remap="install">install -v -dm755 /usr/lib/bfd-plugins
- ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so \
- /usr/lib/bfd-plugins/</userinput></screen>
- <para>现在最终的工具链已经就位,
- 重要的是再次确认编译和链接像我们期望的一样正常工作。
- 再一次执行之前进行过的完整性检查:
- </para>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='a'])"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='b'])"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='c'])"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='d'])"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='e'])"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='f'])"/>
- <screen><computeroutput>/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crt1.o succeeded
- /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crti.o succeeded
- /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/../../../../lib/crtn.o succeeded</computeroutput></screen>
- <!--para>Depending on your machine architecture, the above may differ slightly,
- the difference usually being the name of the directory
- after <filename class="directory">/usr/lib/gcc</filename>. The important
- thing to look for here is that <command>gcc</command> has found all three
- <filename>crt*.o</filename> files under the
- <filename class="directory">/usr/lib</filename> directory.</para-->
- <para>以上结果可能随您的机器体系结构不同而略微不同,
- 区别一般是 <filename class="directory">/usr/lib/gcc</filename>
- 之后的目录名。我们关注的重点是, <command>gcc</command> 应该在
- <filename class="directory">/usr/lib</filename> 目录中找到所有三个
- <filename>crt*.o</filename> 文件。</para>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='g'])"/>
- <screen><userinput>grep -B4 '^ /usr/include' dummy.log</userinput></screen>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='h'])"/>
- <screen><computeroutput>#include <...> search starts here:
- /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include
- /usr/local/include
- /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include-fixed
- /usr/include</computeroutput></screen>
- <!--para>Again, note that the directory named after your target triplet may be
- different than the above, depending on your architecture.</para-->
- <para>同样要注意以您的目标三元组命名的目录根据您体系结构的不同,
- 可能和以上不同。</para>
- <!-- This appears to be obsolete
- <note><para>As of version 4.3.0, GCC now unconditionally installs the
- <filename>limits.h</filename> file into the private
- <filename class="directory">include-fixed</filename> directory, and that
- directory is required to be in place.</para></note>
- -->
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='i'])"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='j'])"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='k'])"/>
- <screen><computeroutput>SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib64")
- SEARCH_DIR("/usr/local/lib64")
- SEARCH_DIR("/lib64")
- SEARCH_DIR("/usr/lib64")
- SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib")
- SEARCH_DIR("/usr/local/lib")
- SEARCH_DIR("/lib")
- SEARCH_DIR("/usr/lib");</computeroutput></screen>
- <para>在 32 位系统上可能显示一些不同的目录,例如下面是 i686
- 机器上的输出:</para>
- <screen><computeroutput>SEARCH_DIR("/usr/i686-pc-linux-gnu/lib32")
- SEARCH_DIR("/usr/local/lib32")
- SEARCH_DIR("/lib32")
- SEARCH_DIR("/usr/lib32")
- SEARCH_DIR("/usr/i686-pc-linux-gnu/lib")
- SEARCH_DIR("/usr/local/lib")
- SEARCH_DIR("/lib")
- SEARCH_DIR("/usr/lib");</computeroutput></screen>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='l'])"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='m'])"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='n'])"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='o'])"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='p'])"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='q'])"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='r'])"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='s'])"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='t'])"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='u'])"/>
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="adjusting.xml"
- xpointer="xpointer(//*[@os='v'])"/>
- <para>最后移动一个位置不正确的文件:</para>
- <screen><userinput remap="install">mkdir -pv /usr/share/gdb/auto-load/usr/lib
- mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib</userinput></screen>
- </sect2>
- <sect2 id="contents-gcc" role="content">
- <title>GCC 的内容</title>
- <segmentedlist>
- <segtitle>安装的程序</segtitle>
- <segtitle>安装的库</segtitle>
- <segtitle>安装的目录</segtitle>
- <seglistitem>
- <seg>c++, cc (到 gcc 的链接), cpp, g++, gcc,
- gcc-ar, gcc-nm, gcc-ranlib, gcov, gcov-dump, 以及 gcov-tool</seg>
- <seg>libasan.{a,so}, libatomic.{a,so}, libcc1.so, libgcc.a, libgcc_eh.a,
- libgcc_s.so, libgcov.a, libgomp.{a,so}, libitm.{a,so},
- liblsan.{a,so}, liblto_plugin.so,
- libquadmath.{a,so}, libssp.{a,so}, libssp_nonshared.a,
- libstdc++.{a,so}, libstdc++fs.a, libsupc++.a, libtsan.{a,so},
- 以及 libubsan.{a,so}</seg>
- <seg>/usr/include/c++, /usr/lib/gcc, /usr/libexec/gcc, 以及
- /usr/share/gcc-&gcc-version;</seg>
- </seglistitem>
- </segmentedlist>
- <variablelist>
- <bridgehead renderas="sect3">简要描述</bridgehead>
- <?dbfo list-presentation="list"?>
- <?dbhtml list-presentation="table"?>
- <varlistentry id="c">
- <term><command>c++</command></term>
- <listitem>
- <para>C++ 编译器</para>
- <indexterm zone="ch-system-gcc c">
- <primary sortas="b-c++">c++</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="cc">
- <term><command>cc</command></term>
- <listitem>
- <para>C 编译器</para>
- <indexterm zone="ch-system-gcc cc">
- <primary sortas="b-cc">cc</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="cpp">
- <term><command>cpp</command></term>
- <listitem>
- <para>C 预处理器,编译器使用它展开源文件中的 #include、#define
- 及类似指令</para>
- <indexterm zone="ch-system-gcc cpp">
- <primary sortas="b-cpp">cpp</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="g">
- <term><command>g++</command></term>
- <listitem>
- <para>C++ 编译器</para>
- <indexterm zone="ch-system-gcc g">
- <primary sortas="b-g++">g++</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="gcc">
- <term><command>gcc</command></term>
- <listitem>
- <para>C 编译器</para>
- <indexterm zone="ch-system-gcc gcc">
- <primary sortas="b-gcc">gcc</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="gcc-ar">
- <term><command>gcc-ar</command></term>
- <listitem>
- <!--para>A wrapper around <command>ar</command> that adds a
- plugin to the command line. This program is only used
- to add "link time optimization" and is not useful with the
- default build options</para-->
- <para><command>ar</command> 的一个包装器,
- 它在命令行中添加一个插件。这个程序只被用于提供链接时优化功能,
- 对于默认的构建选项来说没有作用。</para>
- <indexterm zone="ch-system-gcc gcc-ar">
- <primary sortas="b-gcc-ar">gc-ar</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="gcc-nm">
- <term><command>gcc-nm</command></term>
- <listitem>
- <!--para>A wrapper around <command>nm</command> that adds a
- plugin to the command line. This program is only used
- to add "link time optimization" and is not useful with the
- default build options</para-->
- <para><command>nm</command> 的一个包装器,
- 它在命令行中添加一个插件。这个程序只被用于提供链接时优化功能,
- 对于默认的构建选项来说没有作用。</para>
- <indexterm zone="ch-system-gcc gcc-nm">
- <primary sortas="b-gcc-nm">gc-nm</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="gcc-ranlib">
- <term><command>gcc-ranlib</command></term>
- <listitem>
- <!--para>A wrapper around <command>ranlib</command> that adds a
- plugin to the command line. This program is only used
- to add "link time optimization" and is not useful with the
- default build options</para-->
- <para><command>ranlib</command> 的一个包装器,
- 它在命令行中添加一个插件。这个程序只被用于提供链接时优化功能,
- 对于默认的构建选项来说没有作用。</para>
- <indexterm zone="ch-system-gcc gcc-ranlib">
- <primary sortas="b-gcc-ranlib">gc-ranlib</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="gcov">
- <term><command>gcov</command></term>
- <listitem>
- <para>一个覆盖率测试工具;
- 用于分析程序并确定在哪里优化最有效</para>
- <indexterm zone="ch-system-gcc gcov">
- <primary sortas="b-gcov">gcov</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="gcov-dump">
- <term><command>gcov-dump</command></term>
- <listitem>
- <para>离线 gcda 和 gcno 性能剖析数据显示工具</para>
- <indexterm zone="ch-system-gcc gcov-dump">
- <primary sortas="b-gcov-dump">gcov-dump</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="gcov-tool">
- <term><command>gcov-tool</command></term>
- <listitem>
- <para>离线 gcda 性能剖析预处理工具</para>
- <indexterm zone="ch-system-gcc gcov-tool">
- <primary sortas="b-gcov-tool">gcov-tool</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="libasan">
- <term><filename class="libraryfile">libasan</filename></term>
- <listitem>
- <para>地址完整性检查库</para>
- <indexterm zone="ch-system-gcc libasan">
- <primary sortas="b-libasan">libasan</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="libatomic">
- <term><filename class="libraryfile">libatomic</filename></term>
- <listitem>
- <para>GCC 内建原子操作运行库</para>
- <indexterm zone="ch-system-gcc libatomic">
- <primary sortas="b-libatomic">libatomic</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="libcc1">
- <term><filename class="libraryfile">libcc1</filename></term>
- <listitem>
- <para>C 预处理库</para>
- <indexterm zone="ch-system-gcc libcc1">
- <primary sortas="b-libcc1">libcc1</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="libgcc">
- <term><filename class="libraryfile">libgcc</filename></term>
- <listitem>
- <para>包含 <command>gcc</command> 的运行时支持</para>
- <indexterm zone="ch-system-gcc libgcc">
- <primary sortas="c-libgcc">libgcc</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="libgcov">
- <term><filename class="libraryfile">libgcov</filename></term>
- <listitem>
- <para>在 GCC 被指示启动性能剖析时,这个库被链接到程序中</para>
- <indexterm zone="ch-system-gcc libgcov">
- <primary sortas="c-libgcov">libgcov</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="libgomp">
- <term><filename class="libraryfile">libgomp</filename></term>
- <listitem>
- <para>OpenMP API 的 GNU 实现,用于 C/C++ 和 Fortran
- 的跨平台共享内存并行编程</para>
- <indexterm zone="ch-system-gcc libgomp">
- <primary sortas="c-libgomp">libgomp</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="liblsan">
- <term><filename class="libraryfile">liblsan</filename></term>
- <listitem>
- <para>内存泄露清理检查库</para>
- <indexterm zone="ch-system-gcc liblsan">
- <primary sortas="c-liblsan">liblsan</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="liblto_plugin">
- <term><filename class="libraryfile">liblto_plugin</filename></term>
- <listitem>
- <para>GCC 的链接时优化 (LTO) 插件,
- 使得 GCC 可以进行跨越编译单元的优化</para>
- <indexterm zone="ch-system-gcc liblto_plugin">
- <primary sortas="c-liblto_plugin">liblto_plugin</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="libquadmath">
- <term><filename class="libraryfile">libquadmath</filename></term>
- <listitem>
- <para>GCC 四精度数学 API 库</para>
- <indexterm zone="ch-system-gcc libquadmath">
- <primary sortas="c-libquadmath">libquadmath</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="libssp">
- <term><filename class="libraryfile">libssp</filename></term>
- <listitem>
- <para>包含 GCC 的栈溢出保护功能支持子程序</para>
- <indexterm zone="ch-system-gcc libssp">
- <primary sortas="c-libssp">libssp</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="libstdc">
- <term><filename class="libraryfile">libstdc++</filename></term>
- <listitem>
- <para>C++ 标准库</para>
- <indexterm zone="ch-system-gcc libstdc">
- <primary sortas="c-libstdc++">libstdc++</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="libstdcfs">
- <term><filename class="libraryfile">libstdc++fs</filename></term>
- <listitem>
- <para>ISO/IEC TS 18822:2015 文件系统库</para>
- <indexterm zone="ch-system-gcc libstdcfs">
- <primary sortas="c-libstdc++fs">libstdc++fs</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="libsupc">
- <term><filename class="libraryfile">libsupc++</filename></term>
- <listitem>
- <para>包含 C++ 编程语言支持子程序</para>
- <indexterm zone="ch-system-gcc libsupc">
- <primary sortas="c-libsupc++">libsupc++</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="libtsan">
- <term><filename class="libraryfile">libtsan</filename></term>
- <listitem>
- <para>线程完整性检查库</para>
- <indexterm zone="ch-system-gcc libtsan">
- <primary sortas="c-libtsan">libtsan</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="libubsan">
- <term><filename class="libraryfile">libubsan</filename></term>
- <listitem>
- <para>未定义行为清理检查库</para>
- <indexterm zone="ch-system-gcc libubsan">
- <primary sortas="c-libubsan">libubsan</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- </variablelist>
- </sect2>
- </sect1>
|