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,cb2bc43e6f95a4fe X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-30 12:44:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!news-feed.riddles.org.uk!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: It's been a while... Date: Fri, 30 May 2003 14:45:46 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:38148 Date: 2003-05-30T14:45:46-05:00 List-Id: Luke A. Guest wrote in message ... >Hi, > >I learned Ada at University around 1995 and I've been interested in >getting back into it. Now, I have a simple "hello" app and it is huge. >Now, I don't want to have a load of people telling me not to judge Ada on >the size, but I really want to know how to get the app size down. The app >is: > >-rwxr-xr-x 1 laguest users 200492 2003-05-29 22:16 hello Gee, that's tiny. On Windows, I get: HELLO EXE 217,875 05-30-03 2:39p hello.exe after compiling with Gnat. You really ought to try another compiler (or stop worrying). With Janus/Ada 3.1.2, I get: HELLO EXE 61,952 05-30-03 2:42p hello.exe Much of that size is in the Microsoft libraries; the Ada generated part is less than 40K. And, the same program on MS-DOS is around 18K in size. (I used no optimization with either compiler, but I did use unused code trimming on the Janus/Ada binder, as that is required with Windows programs. And it matters a lot in this case.) Randy.