Link-Time Optimizations

James E Wilson wilson@specifix.com
Tue Nov 8 23:53:00 GMT 2005
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



More information about the Binutils mailing list