From: The Quelisher <kendal@freenet.scri.fsu.edu>
Subject: Re: Ada vs. C
Date: 1996/08/09
Date: 1996-08-09T00:00:00+00:00 [thread overview]
Message-ID: <320B693F.4ACA@freenet.scri.fsu.edu> (raw)
In-Reply-To: dewar.839592211@schonberg
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 used gcc to compile the C code and gnatmake for the Ada code, both on
unix machines. Now that's what I meant by the difference in file sizes.
I understand though that there is a tradeoff between file size and
functionability of a program, but let's take PC's for example. Who wants
to run a 6 mb program written in Ada when a 2mb program written in C
does the same thing? I'm not trying to knock Ada or anything, rather
just making an observation. Again, just my $.02
--
*.........................................*
. |/ .
. |\ENDAL .
. WWW => http://www.cs.fsu.edu/~vandyke .
. EMail => kendal@freenet.scri.fsu.edu .
. Pager => (904) 297-6658 .
. .
*.........................................*
next prev parent reply other threads:[~1996-08-09 0:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-07 0:00 Ada vs. C The Quelisher
1996-08-09 0:00 ` Jack W Scheible
1996-08-09 0:00 ` Daniel P Hudson
1996-08-09 0:00 ` Robert Dewar
1996-08-09 0:00 ` Robert Dewar
1996-08-09 0:00 ` The Quelisher [this message]
1996-08-10 0:00 ` Robert Dewar
1996-08-10 0:00 ` steved
1996-08-10 0:00 ` Robert Dewar
1996-08-10 0:00 ` Bob Kitzberger
1996-08-11 0:00 ` Dave Wood
1996-08-14 0:00 ` busigin
1996-08-16 0:00 ` Robert Dewar
1996-08-11 0:00 ` Jerry van Dijk
1996-08-12 0:00 ` Vladimir Vukicevic
-- strict thread matches above, loose matches on Subject: below --
1995-01-20 4:43 "Subtract C, add Ada" Samuel Mize
1995-01-21 20:28 ` David O'Brien
[not found] ` <3g655n$q5k@theopolis.orl.mmc.com>
1995-01-30 15:33 ` Ada vs. C Martijn Bak
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox