comp.lang.ada
 help / color / mirror / Atom feed
From: dvdeug@x8b4e53cd. (David Starner)
Subject: Re: Ada95 Strengths/Weaknesses.
Date: 1999/09/28
Date: 1999-09-28T00:00:00+00:00	[thread overview]
Message-ID: <7srb3r$8a21@news.cis.okstate.edu> (raw)
In-Reply-To: 7sr7a4$nc4$1@nnrp1.deja.com

In article <7sr7a4$nc4$1@nnrp1.deja.com>, Robert Dewar wrote:
>In article <7spauv$a2g2@news.cis.okstate.edu>,
>  dstarner98@aasaa.ofe.org wrote:
>> Check. I just recently hand converted a small game from C++ to
>Ada using
>> G++ and GNAT respectively. The only changes besides that were
>going from
>> 0 based indexing to 1 based, and dropping some debug code in
>the process.
>> g++ *.cpp -o Alexis produces a binary with a size of 15,796
>bytes. gnatmake
>> alexis-char produces a binary with a size of 735,962 bytes.
>
>Obviously an apples-vs-oranges comparison
In some ways, yes, but it's a direct comparison of the most
straightforward - the default - way of compiling.

>produces a C++ binary
>> of 12,568 bytes and an Ada binary of 51,124 bytes.
>
>Comparing the minimum sizes of trivial programs is not a
>terribly interesting operation, since it has almost nothing
>to do with real programs,
One thing professionals seem to forget is that there are
a whole lot more amateurs out there then there are 
professionals, and what the amateurs do is just as
real as what the professionals do.

Also, I may point that /bin holds 20 programs of this size (12K or 
less). They come very useful at times, and I wouldn't denigrate
them as fake. 

>Of course you have to use identical libraries,
>not just corresponding ones, because the libraries in C++
>and Ada definitely do not correspond.
>
>If you really want to waste more time tweaking, you might
>want to try pragma No_Run_Time and eliminate the GNAT runtime.
>
>But almost certainly you are still comparing apples and oranges,
>and the comparison is not particularly interesting.
I don't know what you're comparing. I'm comparing the size of
programs when I straightforwardly write it in language A and
language B. 

>But almost certainly it is not comparable to the original. If
>you like post the two pieces of code you compared. Quite often
>such postings reveal huge misconceptions in what is and is not
>comparable between the two languages.
The programs are a little over 10K of source each. I don't feel
that it would appropriate to post the whole thing to this newsgroup.
ftp x8b4e53cd.dhcp.okstate.edu and get Alexis_Ada95.tgz & 
Alexis_C++.tar.gz if anyone really cares.

>I don't think you need a new Ada compiler, I think you need more
>understanding about how to do a comparison like this in a
>meaningful manner.

It was meaningful. Ringing the dinner bell and seeing how long it
takes for the animals to show up may be awful if you want the
theorical max speed of the animals (what you seem to be look for),
but it's great if you want to see how long it take for the animals
to show up when I ring the dinner bell (what I'm looking for.)

David Starner - dstarner98@aasaa.ofe.org




  reply	other threads:[~1999-09-28  0:00 UTC|newest]

Thread overview: 87+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-27  0:00 Ada95 Strengths/Weaknesses the middleman
1999-09-27  0:00 ` Marin David Condic
1999-09-27  0:00   ` Hyman Rosen
1999-09-28  0:00     ` Ed Falis
1999-09-28  0:00       ` Hyman Rosen
1999-09-28  0:00         ` Ed Falis
1999-09-28  0:00     ` Robert Dewar
1999-09-28  0:00       ` Preben Randhol
1999-09-28  0:00         ` bill
1999-09-27  0:00           ` Aidan Skinner
1999-09-28  0:00           ` Steve Doiel
1999-09-28  0:00           ` Larry Kilgallen
1999-09-28  0:00           ` Preben Randhol
1999-09-28  0:00   ` Preben Randhol
1999-09-27  0:00 ` David Starner
1999-09-28  0:00   ` Robert Dewar
1999-09-28  0:00     ` David Starner
1999-09-29  0:00       ` Robert A Duff
1999-09-28  0:00     ` David Starner
1999-09-28  0:00       ` Robert Dewar
1999-09-28  0:00         ` Ray Blaak
1999-09-28  0:00   ` Robert Dewar
1999-09-28  0:00     ` David Starner
1999-09-28  0:00       ` Gautier
1999-09-28  0:00         ` David Starner
1999-09-29  0:00           ` Robert Dewar
1999-09-28  0:00         ` Ed Falis
1999-09-28  0:00           ` David Starner
1999-09-29  0:00           ` Robert Dewar
1999-09-28  0:00       ` p.obry
1999-09-28  0:00         ` David Starner
1999-09-28  0:00           ` Richard D Riehle
1999-09-28  0:00       ` Robert Dewar
1999-09-28  0:00       ` Robert Dewar
1999-09-28  0:00         ` David Starner [this message]
1999-09-29  0:00           ` Robert Dewar
1999-09-30  0:00         ` Pragma (was Re: Ada95 Strengths/Weaknesses.) Preben Randhol
1999-09-30  0:00           ` Preben Randhol
1999-09-28  0:00       ` Ada95 Strengths/Weaknesses Ted Dennison
1999-09-28  0:00         ` Simon Wright
1999-09-28  0:00     ` GNAT listing file default names (was: Ada95 Strengths/Weaknesses) Larry Kilgallen
1999-09-28  0:00       ` Gautier
1999-09-29  0:00         ` Robert Dewar
1999-09-29  0:00       ` Robert Dewar
1999-09-29  0:00         ` Larry Kilgallen
1999-09-29  0:00           ` Robert Dewar
1999-09-29  0:00             ` Larry Kilgallen
1999-09-30  0:00               ` Robert Dewar
1999-09-28  0:00     ` Code size of Ada ? was Re: Ada95 Strengths/Weaknesses Alfred Hilscher
1999-09-28  0:00       ` Gautier
1999-09-28  0:00       ` David Botton
1999-09-29  0:00       ` Robert Dewar
1999-09-29  0:00         ` Alfred Hilscher
1999-09-29  0:00           ` Robert Dewar
1999-09-30  0:00             ` Alfred Hilscher
1999-09-30  0:00               ` Gautier
1999-09-30  0:00               ` Robert Dewar
1999-09-29  0:00         ` Larry Kilgallen
1999-09-29  0:00           ` Robert Dewar
1999-09-29  0:00           ` Alfred Hilscher
1999-09-29  0:00             ` Ted Dennison
1999-09-29  0:00             ` Robert Dewar
1999-09-30  0:00               ` Alfred Hilscher
1999-09-30  0:00                 ` Gautier
1999-09-30  0:00                   ` Robert Dewar
1999-09-30  0:00                   ` Robert Dewar
1999-09-30  0:00                   ` Robert Dewar
1999-09-30  0:00                 ` Robert Dewar
1999-09-30  0:00                   ` Ehud Lamm
1999-09-30  0:00                     ` Robert Dewar
     [not found]                       ` <7t2e1l$lqt2@ftp.kvaerner.com>
     [not found]                         ` <37F91D6E.58685CFE@mitre.org>
     [not found]                           ` <7tf7uo$h2b$1@nnrp1.deja.com>
     [not found]                             ` <37FBA978.A86762F1@mitre.org>
1999-10-18  0:00                               ` Robert Dewar
1999-10-19  0:00                                 ` Code size of Ada ? Robert I. Eachus
     [not found]                           ` <7tf7uo <37FBA978.A86762F1@mitre.org>
     [not found]                             ` <5OkO3.2$1e.659@typhoon.nyu.edu>
1999-10-19  0:00                               ` Code size of Ada ? was Re: Ada95 Strengths/Weaknesses Robert I. Eachus
1999-09-30  0:00                   ` tmoran
1999-09-29  0:00             ` Gautier
1999-09-29  0:00               ` Ed Falis
1999-09-29  0:00                 ` Gautier
1999-09-29  0:00                 ` tmoran
1999-09-30  0:00               ` Robert Dewar
1999-09-29  0:00           ` Robert Dewar
1999-09-28  0:00   ` the middleman
1999-09-27  0:00 ` Steve Doiel
1999-09-27  0:00 ` J. David Bryan
1999-09-28  0:00 ` Geoff Bull
1999-09-29  0:00   ` the middleman
1999-09-29  0:00     ` Robert A Duff
1999-09-28  0:00 ` Geoff Bull
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox