• <legend id='Sfzjt'><style id='Sfzjt'><dir id='Sfzjt'><q id='Sfzjt'></q></dir></style></legend>

      <bdo id='Sfzjt'></bdo><ul id='Sfzjt'></ul>
    <i id='Sfzjt'><tr id='Sfzjt'><dt id='Sfzjt'><q id='Sfzjt'><span id='Sfzjt'><b id='Sfzjt'><form id='Sfzjt'><ins id='Sfzjt'></ins><ul id='Sfzjt'></ul><sub id='Sfzjt'></sub></form><legend id='Sfzjt'></legend><bdo id='Sfzjt'><pre id='Sfzjt'><center id='Sfzjt'></center></pre></bdo></b><th id='Sfzjt'></th></span></q></dt></tr></i><div id='Sfzjt'><tfoot id='Sfzjt'></tfoot><dl id='Sfzjt'><fieldset id='Sfzjt'></fieldset></dl></div>
    1. <tfoot id='Sfzjt'></tfoot>
    2. <small id='Sfzjt'></small><noframes id='Sfzjt'>

      1. 如何编辑和重新构建 GCC libstdc++ C++ 标准库源代码?

        How to edit and re-build the GCC libstdc++ C++ standard library source?(如何编辑和重新构建 GCC libstdc++ C++ 标准库源代码?)

        <small id='q3J5R'></small><noframes id='q3J5R'>

          • <i id='q3J5R'><tr id='q3J5R'><dt id='q3J5R'><q id='q3J5R'><span id='q3J5R'><b id='q3J5R'><form id='q3J5R'><ins id='q3J5R'></ins><ul id='q3J5R'></ul><sub id='q3J5R'></sub></form><legend id='q3J5R'></legend><bdo id='q3J5R'><pre id='q3J5R'><center id='q3J5R'></center></pre></bdo></b><th id='q3J5R'></th></span></q></dt></tr></i><div id='q3J5R'><tfoot id='q3J5R'></tfoot><dl id='q3J5R'><fieldset id='q3J5R'></fieldset></dl></div>
          • <tfoot id='q3J5R'></tfoot>
              <bdo id='q3J5R'></bdo><ul id='q3J5R'></ul>
                  <tbody id='q3J5R'></tbody>
                  <legend id='q3J5R'><style id='q3J5R'><dir id='q3J5R'><q id='q3J5R'></q></dir></style></legend>
                  本文介绍了如何编辑和重新构建 GCC libstdc++ C++ 标准库源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在进行一些研究,想编辑 libstdc++ 库中的一些源代码以进行实验.我特别有兴趣尝试并行排序算法.有没有地方可以找到文档来轻松编辑和构建源代码?

                  I am working on some research and would like to edit some of the source code in the libstdc++ library for experimentation. I am, specifically, interested in experimenting with the parallel sorting algorithms. Is there a place I can find documentation to easily edit and build the source code?

                  我尝试构建各种版本的 libstdc++ 库,但没有成功.似乎大多数新版本都需要构建整个 gcc 包,这是一个漫长得多的过程,尤其是当我要在 libstdc++ 中编辑和试验一些文件时.

                  I have tried, unsuccessfully, to build various versions of the libstdc++ library. It seems like most new versions require building the entire gcc package, which is a much more lengthy process, especially if I am going to be editing and experimenting with a few files in libstdc++.

                  我也找不到包含并行排序算法的源文件.我似乎只能找到定义函数的头文件,而不是源代码本身.任何建议或文档链接将不胜感激.

                  I have also been unable to find the source files that contain the parallel sorting algorithms. I can only seem to find the header files that define the functions, and not the source code itself. Any advice or links to documentation would be greatly appreciated.

                  推荐答案

                  是的,您必须构建整个 GCC,但是一旦完成,您只需要重新构建 libstdc++ 部分.

                  Yes, you have to build the whole of GCC, but once you've done that you only need to rebuild the libstdc++ part.

                  在http://gcc.gnu.org/wiki/InstallingGCC

                  libstdc++ 源代码位于 libstdc++-v3 目录中.并行算法在 libstdc++-v3/include/parallel 中,它们是模板,因此所有代码都在标题中.少量非头代码在libstdc++-v3/src/c++98/parallel-settings.cc

                  The libstdc++ sources are in the libstdc++-v3 directory. The parallel algorithms are in libstdc++-v3/include/parallel, they are templates so all the code is in headers. The small amount of non-header code is in libstdc++-v3/src/c++98/parallel-settings.cc

                  在正常配置和构建整个 GCC 后,您可以通过在 $TARGET/libstdc++-v3 目录(其中 $TARGET 类似于 x86_64-pc-linux-gnu).

                  After configuring and building the whole of GCC as normal, you can rebuild libstdc++ by running make in the $TARGET/libstdc++-v3 directory (where $TARGET is something like x86_64-pc-linux-gnu).

                  默认情况下,makefile 没有正确的依赖关系,导致对象在标头更改后重建,因此您可能需要执行 make clean 然后再次执行 make 以获得您的更改将被接受.

                  By default the makefiles don't have proper dependencies that cause objects to be rebuilt after headers change, so you might need to do make clean then make again to get your changes to be picked up.

                  这篇关于如何编辑和重新构建 GCC libstdc++ C++ 标准库源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Constructor initialization Vs assignment(构造函数初始化 Vs 赋值)
                  Is a `=default` move constructor equivalent to a member-wise move constructor?(`=default` 移动构造函数是否等同于成员移动构造函数?)
                  Has the new C++11 member initialization feature at declaration made initialization lists obsolete?(声明时新的 C++11 成员初始化功能是否使初始化列表过时了?)
                  Order of constructor call in virtual inheritance(虚继承中构造函数调用的顺序)
                  How to use sfinae for selecting constructors?(如何使用 sfinae 选择构造函数?)
                  Initializing a union with a non-trivial constructor(使用非平凡的构造函数初始化联合)

                    <small id='Tz88G'></small><noframes id='Tz88G'>

                    <tfoot id='Tz88G'></tfoot>

                    <i id='Tz88G'><tr id='Tz88G'><dt id='Tz88G'><q id='Tz88G'><span id='Tz88G'><b id='Tz88G'><form id='Tz88G'><ins id='Tz88G'></ins><ul id='Tz88G'></ul><sub id='Tz88G'></sub></form><legend id='Tz88G'></legend><bdo id='Tz88G'><pre id='Tz88G'><center id='Tz88G'></center></pre></bdo></b><th id='Tz88G'></th></span></q></dt></tr></i><div id='Tz88G'><tfoot id='Tz88G'></tfoot><dl id='Tz88G'><fieldset id='Tz88G'></fieldset></dl></div>
                        <tbody id='Tz88G'></tbody>

                            <bdo id='Tz88G'></bdo><ul id='Tz88G'></ul>

                          • <legend id='Tz88G'><style id='Tz88G'><dir id='Tz88G'><q id='Tz88G'></q></dir></style></legend>