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=3.8 required=5.0 tests=BAYES_00,INVALID_MSGID, RATWARE_MS_HASH,RATWARE_OUTLOOK_NONAME autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,9adfbb907494972e X-Google-Attributes: gid1014db,public X-Google-Thread: 103376,9adfbb907494972e X-Google-Attributes: gid103376,public From: "Tim Behrendsen" Subject: Re: Ada to C/C++ translator needed Date: 1996/09/28 Message-ID: <01bbad6e$67743f20$32ee6fcf@timhome2>#1/1 X-Deja-AN: 185874597 references: <32499FA0.4B5E@magic.fr> <52e5t5$m28@btmpjg.god.bel.alcatel.be> <52feul$os2@goanna.cs.rmit.edu.au> content-type: text/plain; charset=ISO-8859-1 organization: A-SIS mime-version: 1.0 newsgroups: comp.lang.c,comp.lang.ada Date: 1996-09-28T00:00:00+00:00 List-Id: Richard A. O'Keefe wrote in article <52feul$os2@goanna.cs.rmit.edu.au>... > In article 4B5E@magic.fr, Emmanuel Champommier () writes: > >I'm looking for an Ada to C (or C++) translator. > > wardi@rsd.bel.alcatel.be (Ian Ward) writes: > >[He thinks it would be hard and points out that Ada compilers > > are now very good.] > > 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 ... -- Tim Behrendsen (tim@a-sis.com)