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,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e9f27bbe0678fdfc,start X-Google-Attributes: gid103376,public From: David Dousette Subject: huge executable?? Date: 2000/05/13 Message-ID: <391E09C3.FA04871E@mailandnews.com>#1/1 X-Deja-AN: 623126617 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@onemain.com X-Trace: nntp3.onemain.com 958273406 216.80.154.107 (Sat, 13 May 2000 23:03:26 EDT) MIME-Version: 1.0 NNTP-Posting-Date: Sat, 13 May 2000 23:03:26 EDT Newsgroups: comp.lang.ada Date: 2000-05-13T00:00:00+00:00 List-Id: I'm using the OS/2 version of GNAT 3.12p, and as I'm still new to Ada, I thought I'd take a stab at a "Hello World!" program, without my handy book... got it on the second try, stupid semicolon... anyway, my question was why is the executable so large? Here's the code: -------------------------------------------------------------------- with Ada.Text_IO; procedure Hello is begin Ada.Text_IO.Put("Hello World!"); Ada.Text_IO.Flush; end Hello; -------------------------------------------------------------------- I compiled it with the command line "gnatmake hello.adb" and the executable generated was a little over 250,000 bytes! I ran it through "emxbind -s" (as suggested by R. Dewar) to strip out all the debugging stuff, but it's still 126,000 bytes.... why? I wrote a similar program in C, and it was less than 5,000 bytes... why is the .EXE produced by Ada so much bigger? The executable runs fine, and I have plenty of hard drive space... I was just curious. Thanks, David