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.7 required=5.0 tests=BAYES_00,INVALID_MSGID, PDS_OTHER_BAD_TLD 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: tmoran@bix.com Subject: Re: Executable File Size Differences Date: 1996/09/29 Message-ID: <52l34a$epm@news2.delphi.com>#1/1 X-Deja-AN: 185981468 organization: Delphi Internet Services Corporation newsgroups: comp.lang.ada Date: 1996-09-29T00:00:00+00:00 List-Id: >The problem is an old one: the lack of "smart linkers" which >would include only the necessary code from an Ada package, and The RR compilers I've been using on PCs for years have done this (/t option) and I think ObjectAda will do it. When I used Borland C++ 3.0 I never noticed the linker capable of this - has that changed? I just tried a very simple Ada program with an ancient Janus 2.2.2 compiler targeted to DOS .com files: procedure hello is world:exception; begin raise world; end hello; produces hello.com of 5328 bytes and when run gives: ** Unhandled User Exception - HELLO.WORLD On Line Number 4 In HELLO I realize that's cheating - but adding Text_IO unsurprisingly added to the executable size. And real programs under Windows, as Robert Dewar suggests, results in executables, both C and Ada, noticeably larger than 5K. #.#