This is the mail archive of the
mailing list for the GCC project.
Re: Link-time optimzation
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: mark at codesourcery dot com (Mark Mitchell)
- Cc: gcc at gcc dot gnu dot org (gcc mailing list)
- Date: Wed, 16 Nov 2005 17:39:25 -0500 (EST)
- Subject: Re: Link-time optimzation
> The GCC community has talked about link-time optimization for some time.
> In addition to results with other compilers, Geoff Keating's work on
> inter-module optimization has demonstrated the potential for improved
> code-generation from applying optimizations across translation units.
> Our goal has been to develop a proposal that was sufficiently mature
> that it would serve as a plausible approach for consideration -- but we
> fully expect comments from the community to shape and change what we've
> written, perhaps in quite significant ways. Certainly, readers will
> find many details that are unresolved; we are not claiming that this is
> a final, formal specification.
Yes, we should not have to change the assembler, that is just wrong.
Rationale: people are more willy to use different versions of GCC than
different versions of binutils. Also that would mean this prevents
targets which don't use GAS or even newer GAS's.
We should not be using debugging sections to emit IR at all, that makes
things worse since you could then have two different versions of the
same global linked function.