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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cd7d510783cb3f76 X-Google-Attributes: gid103376,public From: cowan@east.alsys.com (Ken Cowan) Subject: Re: Executable File Size Differences Date: 1996/10/01 Message-ID: #1/1 X-Deja-AN: 186524587 sender: news@thomsoft.com references: <52bmn5$7r0@sjx-ixn6.ix.netcom.com> <52bq9m$7gn@nr1.ottawa.istar.net> <324D6631.4F3F@ghgcorp.com> <52o1a8$fre@goanna.cs.rmit.edu.au> organization: Thomson Software Products newsgroups: comp.lang.ada Date: 1996-10-01T00:00:00+00:00 List-Id: In article <52o1a8$fre@goanna.cs.rmit.edu.au>, ok@goanna.cs.rmit.edu.au (Richard A. O'Keefe) wrote: >Stanley Allen writes: > >>The problem is an old one: the lack of "smart linkers" which >>would include only the necessary code from an Ada package, and >>avoid linking in the unused bulk that never gets invoked. > >C doesn't have this either, nor do any of the C++ compilers I have used. Both Visual C++ and ObjectAda for Windows have a smart linker. If you have a source file containing hundreds of subprograms but only call one of them, then only that one gets included into the image. KC --------------------------------------------------------- Ken Cowan Thomson Software Products cowan@east.thomsoft.com 200 Wheeler Rd. phone: (617) 221-7323 Burlington, MA 01803 fax: (617) 220-6882