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: dewar@schonberg.cs.nyu.edu (Robert Dewar) Subject: Re: Executable File Size Differences Date: 1996/09/29 Message-ID: #1/1 X-Deja-AN: 186052986 references: <52l34a$epm@news2.delphi.com> organization: New York University newsgroups: comp.lang.ada Date: 1996-09-29T00:00:00+00:00 List-Id: The clever minimal hello world from tmoran: 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. #.# generates an executable of 20K under OS/2, of course it would be smaller if DLL's were used for the library. The difference of 20K to 5K is partly a matter of EXE files under OS/2 being larger than COM files under DOS, and partly a matter of exception semantics being qute a bit richer in Ada 95 than Ada 83.