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-11 14:33:18 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Why is memory footprint smaller when compiled static? Date: Tue, 11 Jun 2002 16:32:56 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:25762 Date: 2002-06-11T16:32:56-05:00 List-Id: Robert A Duff wrote in message ... >> 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 >> lot of space (it saves nearly 1 megabyte of code size in the Claw >> Builder, for example). > >I agree -- linkers ought to do this. > >But it's harder to do a good job with indirect calls (dispatching), >which you didn't have to worry about in Ada 83. Not much harder. Janus/Ada 3.1.2 (unreleased as of now because of optimization problems unrelated to trimming) has done this for more than a year. It is very valuable with Claw. It does increase the amount of stuff that has to be saved for the linker (an indication of dispatching calls with their tag slot numbers), but it actually turned out to be much easier to implement than I expected (took less than a week). Randy.