This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Link-Time Optimizations
On Tue, 2005-11-08 at 14:19, Javier Cabezas RodrÃguez wrote:
> It sounds interesting, but I'm not sure that this kind of
> optimizations can be done at compile-time. Many of them need the
> vision of the whole program and it is only possible during the final
> link.
See LLVM documentation.
In this scheme, the linker is just a front end to the compiler, and
feeds the whole program to the compiler at link-time. There isn't much
point in adding optimization support to the linker when we already have
an optimizer in the compiler that we can re-use.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com