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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no 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-11 09:45:48 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!feeder.via.net!cyclone-sf.pbi.net!151.164.30.35!cyclone.swbell.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3D06292A.D1339361@despammed.com> From: Wes Groleau Reply-To: wesgroleau@despammed.com X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en,es-MX,es,pt,fr-CA,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Why is memory footprint smaller when compiled static? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 11 Jun 2002 11:45:30 -0500 NNTP-Posting-Host: 151.168.144.162 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1023813947 151.168.144.162 (Tue, 11 Jun 2002 11:45:47 CDT) NNTP-Posting-Date: Tue, 11 Jun 2002 11:45:47 CDT Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:25747 Date: 2002-06-11T11:45:30-05:00 List-Id: > > Come now. Janus/Ada's linker has eliminated unused subprograms pretty > > > > I realize that a lot of systems don't do this, and I've never understood > > why: it isn't particularly hard nor very expensive, and it can save a > > I agree -- linkers ought to do this. > > But it's harder to do a good job with indirect calls (dispatching), Or a package with'ed just so a task in it's body will be activated, or to force implementation-specific code to be included in the RTS. Plus, in Ada 95, intelligent use of child units can eliminate most unused code from being linked. -- Wes Groleau http://freepages.rootsweb.com/~wgroleau