<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时如何找出实际应用了哪些优化?

      How to find out which optimizations are actually applied when using gcc?(使用gcc时如何找出实际应用了哪些优化?)
    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时如何找出实际应用了哪些优化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                C++ stl unordered_map implementation, reference validity(C++ stl unordered_map 实现,参考有效性)
                C++: Is it possible to use a reference as the value in a map?(C++:是否可以使用引用作为映射中的值?)
                Where ampersand quot;amp;quot; can be put when passing argument by reference?(其中符号“amp;通过引用传递参数时可以放置吗?)
                Why can a non-const reference parameter be bound to a temporary object?(为什么可以将非常量引用参数绑定到临时对象?)
                What is a dangling reference?(什么是悬空引用?)
                C++ reference changes when push_back new element to std::vector(当 push_back 新元素到 std::vector 时,C++ 引用发生变化)

                    <tbody id='L2igW'></tbody>

                  <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'>