This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Link-Time Optimizations


On Fri, Nov 11, 2005 at 12:58:55AM +0000, Mike Hearn wrote:
> On Tue, 08 Nov 2005 07:35:30 +0100, Javier Cabezas Rodríguez wrote:
> > -  Dead Code and Data elimination, achieving up to 25% code size reduction.
> 
> The gnu linker can do this, look at --gc-sections and
> -ffunction-sections/-fdata-sections.

Note, this is at best dead function elimination, not really dead code
elimination.  A link-time optimizer can do better, using IPA.

> You have to be careful here though. It can interfere with many programs
> (eg ones that use libglade)

It has some of the same problems in the presence of dynamic linking of
course.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]