Message-ID: <38D665C9.AB52EE66@maths.unine.ch> Date: Mon, 20 Mar 2000 17:54:18 +0000 From: Gautier Organization: Maths - Uni =?iso-8859-1?Q?Neuch=E2tel?= X-Mailer: Mozilla 4.7 (Macintosh; I; PPC) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: smart linking References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: mac13-32.unine.ch X-Trace: 20 Mar 2000 17:52:58 +0100, mac13-32.unine.ch Lines: 13 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > My question is, does gcc or ld do the 'smart > linking' or dead code elimination thing when I > later link my library in my programs? No (unless...). Maybe there is a tool for C++ that does the job at source-level, by analysing the graph of depending source files and telling what to put into object files at compile-time ? GNAT provides such a tool (gnatelim). ______________________________________________________ Gautier -- http://members.xoom.com/gdemont/gsoft.htm