This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Storing optimization choices in an ELF section
- From: Florian Weimer <fweimer at gapps dot redhat dot com>
- To: Ludovic Courtès <ludo at gnu dot org>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 3 Jun 2017 11:45:01 +0200
- Subject: Re: Storing optimization choices in an ELF section
- Authentication-results: sourceware.org; auth=none
- References: <8737bjzxkf.fsf@gnu.org>
On Thu, Jun 1, 2017 at 2:45 PM, Ludovic Courtès <ludo@gnu.org> wrote:
> A proprietary compiler stores information about optimizations it has
> made (loop unrolling, vectorization, etc.) in a ‘.debug_opt_report’ ELF
> section. This information can later be exploited by performance
> analysis tools, which can help understand performance.
>
> Has there been any thought on implementing something similar in GCC?
Yes: https://fedoraproject.org/wiki/Toolchain/Watermark
Nick Clifton has been working on the binutils side of the implementation.
Thanks,
Florian