Re: deadcode optimization

tgi@netgem.com (Tristan Gingold)
8 Mar 2001 13:14:51 -0500

          From comp.compilers

Related articles
deadcode optimization khoury@club-internet.fr (Elie Khoury) (2001-03-01)
Re: deadcode optimization fjh@cs.mu.OZ.AU (2001-03-01)
Re: deadcode optimization broeker@physik.rwth-aachen.de (Hans-Bernhard Broeker) (2001-03-01)
Re: deadcode optimization Bjorn.DeSutter@rug.ac.be (Bjorn De Sutter) (2001-03-01)
Re: deadcode optimization guerby@acm.org (Laurent Guerby) (2001-03-01)
Re: deadcode optimization stonybrk@fubar.com (Norman Black) (2001-03-04)
Re: deadcode optimization fjh@cs.mu.OZ.AU (2001-03-08)
Re: deadcode optimization tgi@netgem.com (2001-03-08)
Re: deadcode optimization rog@vitanuova.com (2001-03-08)
Re: deadcode optimization stonybrk@ix.netcom.com (Norman Black) (2001-03-10)
Re: deadcode optimization stonybrk@ix.netcom.com (Norman Black) (2001-03-10)
Re: deadcode optimization fjh@cs.mu.OZ.AU (2001-03-10)
Re: deadcode optimization fjh@cs.mu.OZ.AU (2001-03-12)
Re: deadcode optimization stonybrk@ix.netcom.com (Norman Black) (2001-03-14)
[5 later articles]
| List of all articles for this month |
From: tgi@netgem.com (Tristan Gingold)
Newsgroups: comp.compilers
Date: 8 Mar 2001 13:14:51 -0500
Organization: Compilers Central
References: 01-03-012 01-03-022 01-03-034
Keywords: linker, optimize, comment
Posted-Date: 08 Mar 2001 13:14:51 EST

Norman Black wrote:
>"Smart linking" is trivial for a compiler do handle and have ALL
>linkers in existence support the unused code "removal".
>
>All that need be done is have the compiler output library/archive
>files directly with one procedure per object in the library. Our
>compilers have done this since 1987 and any linker appropriately does
>not link in unused code.


This is not so easy: what about static variables ? You can rename them, but
you will break debugger compatibility...


Tristan.
[Dead code is dead code; if nothing refers to them, you can safely remove
them. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.