From: ken@coho.halcyon.com (Ken Pizzini)
Subject: Re: Ada to C/C++ translator needed
Date: 1996/09/29
Date: 1996-09-29T00:00:00+00:00 [thread overview]
Message-ID: <52ltk5$qlf@news1.halcyon.com> (raw)
In-Reply-To: 01bbad6e$67743f20$32ee6fcf@timhome2
In article <01bbad6e$67743f20$32ee6fcf@timhome2>,
Tim Behrendsen <tim@airshields.com> wrote:
>Richard A. O'Keefe <ok@goanna.cs.rmit.edu.au> wrote in article
><52feul$os2@goanna.cs.rmit.edu.au>...
>> Just for the record, here's the result of a speed test between C, Ada,
>> Scheme, and Fortran versions of the same numerical program, on an
>> UltraSPARC.
>> cc and f77 are SPARCompiler C and Fortran version 4.0.
>> gnat is 3.04 with gcc back end 2.7.2. stalin was version 0.6.
>>
>> cc 30 seconds
>> gnat 27 seconds
>> stalin 26 seconds (Siskind's Scheme->C then gcc 2.7.2)
>> f77 25 seconds
>>
>> The f77 code came from a book. I wrote the C, Ada, and Scheme versions.
>> I am fluent in C and Scheme, striving to become so in Ada.
>>
>> I can't think of any reason to convert the Ada code to C,
>> especially as the Ada compiler that got this result is free
>> and supports the Ada 95 *standard* interface with C, so that calling
>> existing C code from Ada is a breeze.
>
>I hope you're not suggesting that comparing compilers on one
>system with one program tells you *anything* about the relative
>merits of languages ...
What I read in his results is that the quality of a compiler is
more important to performance than the language. Ignoring
the cc result the value "26 +/- 1 seconds" sounds pretty even.
It would be interesting (to me, not this group) to know how
gcc 2.7.2 would do on the C version of the program, since it
shares the same back-end as gnat, and is the C compiler used
by the stalin test.
--Ken Pizzini
next prev parent reply other threads:[~1996-09-29 0:00 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-09-25 0:00 Ada to C/C++ translator needed Emmanuel Champommier
1996-09-25 0:00 ` David Weller
1996-10-02 0:00 ` B|rje Norden
1996-10-04 0:00 ` David Weller
1996-10-05 0:00 ` Robert Dewar
1996-10-05 0:00 ` Frank Manning
1996-10-06 0:00 ` Samuel Tardieu
1996-10-07 0:00 ` Richard Kenner
1996-10-07 0:00 ` Robert Dewar
1996-10-08 0:00 ` Stephen Leake
1996-10-07 0:00 ` Robert Dewar
1996-10-08 0:00 ` Frank Manning
1996-10-07 0:00 ` Erik Magnuson
1996-09-26 0:00 ` Ian Ward
[not found] ` <52feul$os2@goanna.cs.rmit.edu.au>
1996-09-28 0:00 ` Tim Behrendsen
1996-09-29 0:00 ` Ken Pizzini [this message]
1996-09-29 0:00 ` Tim Behrendsen
1996-09-29 0:00 ` Robert Dewar
1996-09-30 0:00 ` Tim Behrendsen
1996-09-30 0:00 ` William Clodius
1996-09-30 0:00 ` Matthew Heaney
1996-09-30 0:00 ` Tim Behrendsen
1996-10-01 0:00 ` Richard A. O'Keefe
1996-09-30 0:00 ` Richard A. O'Keefe
1996-09-30 0:00 ` Tim Behrendsen
1996-09-30 0:00 ` Richard A. O'Keefe
1996-09-30 0:00 ` Tim Behrendsen
1996-09-30 0:00 ` Peter Seebach
1996-09-30 0:00 ` Tim Behrendsen
1996-10-01 0:00 ` Richard A. O'Keefe
1996-10-01 0:00 ` Tim Behrendsen
1996-10-02 0:00 ` Ian Ward
1996-10-02 0:00 ` Tim Behrendsen
1996-09-30 0:00 ` Peter Seebach
1996-10-02 0:00 ` Richard A. O'Keefe
1996-10-05 0:00 ` Lawrence Kirby
1996-10-06 0:00 ` Tanmoy Bhattacharya
1996-10-06 0:00 ` Lawrence Kirby
1996-10-08 0:00 ` Peter Seebach
1996-10-07 0:00 ` Tanmoy Bhattacharya
1996-10-02 0:00 ` Jon S Anthony
1996-10-02 0:00 ` Jon S Anthony
-- strict thread matches above, loose matches on Subject: below --
1996-10-02 0:00 Simon Johnston
1996-10-07 0:00 ` Richard Riehle
1996-10-09 0:00 ` Richard A. O'Keefe
1996-10-15 0:00 ` Tucker Taft
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox