From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,79b248c1cf206957 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-06 08:08:24 PST Newsgroups: comp.lang.ada Subject: Re: Why is memory footprint smaller when compiled static? References: <17cd177c.0206060626.197bfd2e@posting.google.com> From: Jean-Marc Bourguet Date: 06 Jun 2002 17:08:09 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: cdssoph29.cadence.com Message-ID: <3cff7ae7@news.cadence.com> X-Trace: news.cadence.com 1023376103 cdssoph29.cadence.com (6 Jun 2002 08:08:23 -0800) Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!news.cadence.com Xref: archiver1.google.com comp.lang.ada:25406 Date: 2002-06-06T17:08:09+02:00 List-Id: gautier_niouzes@hotmail.com (Gautier) writes: > Steven Deller: > > # Normally linkers can't do "dead code elimination", though some are > # getting almost smart enough to do that. > > May I correct ? I'd write: > > Normally linkers can do "dead code elimination", though some are > not yet smart enough to do that. The possibility of doing some "dead code elimination" at the linker level depend also on the object file format and the way it is used by the compiler. -- Jean-Marc