<small id='8mKyj'></small><noframes id='8mKyj'>

<legend id='8mKyj'><style id='8mKyj'><dir id='8mKyj'><q id='8mKyj'></q></dir></style></legend>
    • <bdo id='8mKyj'></bdo><ul id='8mKyj'></ul>
    <i id='8mKyj'><tr id='8mKyj'><dt id='8mKyj'><q id='8mKyj'><span id='8mKyj'><b id='8mKyj'><form id='8mKyj'><ins id='8mKyj'></ins><ul id='8mKyj'></ul><sub id='8mKyj'></sub></form><legend id='8mKyj'></legend><bdo id='8mKyj'><pre id='8mKyj'><center id='8mKyj'></center></pre></bdo></b><th id='8mKyj'></th></span></q></dt></tr></i><div id='8mKyj'><tfoot id='8mKyj'></tfoot><dl id='8mKyj'><fieldset id='8mKyj'></fieldset></dl></div>

    1. <tfoot id='8mKyj'></tfoot>
    2. 使用gcc时如何找出实际应用了哪些优化?

      时间:2023-12-03
    3. <i id='QqMw9'><tr id='QqMw9'><dt id='QqMw9'><q id='QqMw9'><span id='QqMw9'><b id='QqMw9'><form id='QqMw9'><ins id='QqMw9'></ins><ul id='QqMw9'></ul><sub id='QqMw9'></sub></form><legend id='QqMw9'></legend><bdo id='QqMw9'><pre id='QqMw9'><center id='QqMw9'></center></pre></bdo></b><th id='QqMw9'></th></span></q></dt></tr></i><div id='QqMw9'><tfoot id='QqMw9'></tfoot><dl id='QqMw9'><fieldset id='QqMw9'></fieldset></dl></div>

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

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

              <legend id='QqMw9'><style id='QqMw9'><dir id='QqMw9'><q id='QqMw9'></q></dir></style></legend>
                <tfoot id='QqMw9'></tfoot>

                  <tbody id='QqMw9'></tbody>
                本文介绍了使用gcc时如何找出实际应用了哪些优化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                使用 IBM 的 XL 编译器系列,可以提供两个选项(-qreport-qlist)来为每个源文件生成报告,其中包括有关哪些优化的信息应用,或者代码的哪些部分无法优化(以及为什么).

                With IBM's XL compiler family it is possible to supply two options (-qreport and -qlist) to generate reports for each source file that include information on which optimizations were applied, or which parts of the code could not be optimized (and why).

                是否有可能为 GNU 的 g++ 获得类似的报告 - 如果是,如何做?

                Is it possible to get a similar reporting for GNU's g++ - and if yes, how to do it?

                推荐答案

                看看 -fdump-tree-[switch] 标志.您可以使用 -fdump-tree-all 获取大量信息.

                Have a look at the -fdump-tree-[switch] flags. You can use -fdump-tree-all to get loads of information.

                也在主干 gcc 中 -fopt-info-[options] 会给你访问更高级别的优化信息,例如当应用特定优化时,错过等,例如

                Also in trunk gcc -fopt-info-[options] will give you access higher level optimization information e.g. when particular optimizations were applied, missed etc e.g.

                -fopt-info-inline-optimized-missed
                

                打印所有成功和错过的内联优化(在本例中为 stderr).这显然是相当新的功能,所以我不确定它的支持情况如何.

                Prints all successful and missed inlining optimizations (to stderr in this case). This is obviously pretty new functionality so I'm not sure how well supported it is yet.

                在早期版本中,他们有 -ftree-vectorizer-verbose=n 现在已被弃用,取而代之的是 opt-info.

                In earlier releases they had -ftree-vectorizer-verbose=n which is now being deprecated in favor of opt-info.

                此处列出了所有这些选项https://gcc.gnu.org/onlinedocs/gcc/Developer-Options.html 虽然挑选有用的可能有点棘手.

                All these options are listed here https://gcc.gnu.org/onlinedocs/gcc/Developer-Options.html though it can be a bit tricky to pick out the useful ones.

                这篇关于使用gcc时如何找出实际应用了哪些优化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:OpenGL 着色器编译错误:在令牌“<undefined"处出现意外的 $undefined 下一篇:我何时以及为什么要使用 -fno-elide-constructors?

                相关文章

                  <tfoot id='L2igW'></tfoot>

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

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