Getting an optimization report from GCC

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.

Leave a Comment