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.2 required=5.0 tests=BAYES_00,FROM_NUMERIC_TLD, INVALID_MSGID,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,63bbc3281a2f80ea X-Google-Attributes: gid103376,public From: steved@pacifier.com@199.2.117.163 (Steve Doiel) Subject: Re: Ada vs. C Date: 1996/08/10 Message-ID: <4uj16j$ivv@news.pacifier.com>#1/1 X-Deja-AN: 173414030 references: <3208F2BA.E34@freenet.scri.fsu.edu> <320B693F.4ACA@freenet.scri.fsu.edu> organization: Pacifier BBS, Vancouver, Wa. ((360) 693-0325) reply-to: steved@pacifier.com (Steve Doiel) newsgroups: comp.lang.ada Date: 1996-08-10T00:00:00+00:00 List-Id: The Quelisher writes: >Robert Dewar wrote: >> That's bogus, comparable programs in Ada and C will generate >> executables of the same size, at least using a technology like GNAT. > >Ok, so let me explain where I am coming from then. Here is the source in >both languages that does the exact same very basic thing: >----------------------------------------------------------------------- >C : > main() > { > printf("Hello world! \n"); > } > >----------------------------------------------------------------------- >Ada : > > WITH Ada.Text_IO; USE Ada.Text_IO; > PROCEDURE hello IS > BEGIN > Put_line("Hello world!"); > END hello; >----------------------------------------------------------------------- > >When I compiled each of the above here are the file sizes that resulted: > C ----> 24,576 > Ada --> 253,952 > I think you'll find that if you add another ten lines of code to your example, the size of the Ada executable will NOT increase proportionally. Yes, for small app's C will come out smaller. But for real reasonably sized app's I think you'll find the sizes to be comparable. My Opinion, Steve Doiel steved@pacifier.com