Mail Archives: djgpp/2000/03/20/13:17:53

Message-ID: <>
Date: Mon, 20 Mar 2000 17:54:18 +0000
From: Gautier <gautier DOT demontmollin AT maths DOT unine DOT ch>
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: <JCGMJHAEKMFIBAAA AT shared1-mail DOT whowhere DOT com>
X-Trace: 20 Mar 2000 17:52:58 +0100,
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  --

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019