comp.lang.ada
 help / color / mirror / Atom feed
From: sxc@itd.dsto.gov.au
Subject: Re: Ada and Number Crunching ?
Date: 24 Feb 95 11:27:12 GMT
Date: 1995-02-24T11:27:12+00:00	[thread overview]
Message-ID: <3ikfqg$6ar@fang.dsto.gov.au> (raw)
In-Reply-To: VLADIMIR.95Feb20234429@speedy.intrepid.com

In article <VLADIMIR.95Feb20234429@speedy.intrepid.com>,
Vladimir Vukicevic <vladimir@speedy.intrepid.com> wrote:
>
>As regarding code speed, I'm currently writing a ray tracer completely
>in Ada 95. (Will take full advantage of tasking [as soon as I get that
>pthreads working for linux..] as well as distributed processing, etc.)
>The code runs at about the same speed than a similar ray tracer
>written completely in C++. However, considering that the ada compiler
>in question is gnat, and the C++ compiler is g++, this isn't much of a
>statistic, since they both use the same optimization engine and back
>end (gcc's). :-)

Actually, I think that Vladimir has an interesting point

  Approximately equivalent Ada and C++ programs, when compiled with 
  compilers that use the same backend / optimiser technology, seem
  to run in approximately the same time. 

Now if there was some way to remove some of the hand-waves in the 
above, he may be able to arrive at a meaningful datapoint.  For 
example:

  1)  Are the Ada and C++ programs really comparable; i.e. they do 
  they use the same algorithms and data structures, and have they 
  had similar tuning effort expended on them?

  2)  Are the back-end optimisers really identical?  (Do they do
  any C++ or Ada specific optimisation?)

  3)  What are the actual runtimes?  (Are they dominated by CPU time?)

-- Steve



       reply	other threads:[~1995-02-24 11:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3iatre$3t1m@lamar.ColoState.EDU>
     [not found] ` <VLADIMIR.95Feb20234429@speedy.intrepid.com>
1995-02-24 11:27   ` sxc [this message]
1995-02-24 17:03     ` Ada and Number Crunching ? Norman H. Cohen
replies disabled

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