Getting an optimization report from GCC

前端 未结 2 1846
自闭症患者
自闭症患者 2020-12-23 20:17

I would like to know if there is an option I can use with GCC to get a detailed report on the optimization actually chosen and performed by the compiler. This is possible wi

2条回答
  •  离开以前
    2020-12-23 20:33

    Although it's not a report in the sense of aggregated information, you might try the -fdump-ipa-all option which makes gcc produce dump files which at least keep you from having to analyse assembler code on what happened.

    Regarding loop optimization the -fdump-rtl-loop2 option might be of interest.

    For details on all this please see the section Options for Debugging Your Program or GCC of the manual.

提交回复
热议问题