comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison <dennison@telepath.com>
Subject: Re: Ada to C++ translator?
Date: Mon, 12 Feb 2001 15:33:01 GMT
Date: 2001-02-12T15:33:01+00:00	[thread overview]
Message-ID: <968vnc$5a2$1@nnrp1.deja.com> (raw)
In-Reply-To: 3A844255.24A4DBA3@lmco.com

In article <3A844255.24A4DBA3@lmco.com>,
  Robert Brantley <robert.brantley@lmco.com> wrote:
> Any recommendations on a Ada to C++ translator?  We have no Ada
> tasking constructs to deal with.

(sigh) Poor guy.

As you have probably gathered from all the snide comments, there isn't a
program to do this. There are some around for C, but none for C++. The
best I can think of would be to use one of those UML reverse-engieering
tools to get UML from Ada, then use its code generator to spit back out
C++. But I wouldn't suggest doing that. Most likely you'll just end up
with the biggest mess the world has seen since my 3-year-old got into my
old wargame boxes.

I'd say we could probably provide more help if you told us what you are
trying to accomplish by doing that, but that would probably just be
opening yourself up to more abuse (when most likely its your managment
that deserves the abuse).

Translation tools can be used successfully in some circumstances, but
they won't generally produce the kind of code you'd want to have to
maintain for years to come. Most of the time some stuff won't translate
very well, and will have to be hand-massaged on the output or on the
input side. The process will probably introduce some new bugs, so you
will have to redo all the code's testing, debugging, and acceptance
phases. If the code is mission-critical, you will also want someone to
go over the output with a fine-toothed comb to mare sure there aren't
any obscure lurking nasties. Odds are any good developer who has to go
through all this is going to be sorely tempted to rewrite the code
anyway to make it into more idomatic C++. So its not going to be easy or
cheap. Thus translation should be used as an emergency last resort, not
as a magic wand.

Now, I hate to join the Greek chorus here, but is it *truly* that much
of an emergency? The only reason I could think of that would ever make
it worth the effort would be if there were a platform out there that I
*had* to use for some reason that had no Ada (or C) compiler available
for it.

--
T.E.D.

http://www.telepath.com/~dennison/Ted/TED.html


Sent via Deja.com
http://www.deja.com/



  parent reply	other threads:[~2001-02-12 15:33 UTC|newest]

Thread overview: 70+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-09 19:17 Ada to C++ translator? Robert Brantley
2001-02-09 20:48 ` Britt Snodgrass
2001-02-09 23:35   ` Jeffrey Carter
2001-02-09 23:47   ` Brian Rogoff
2001-02-12 15:07     ` Ted Dennison
2001-02-12 15:49       ` Brian Rogoff
2001-02-13 19:36         ` Ted Dennison
2001-02-12 20:25       ` David C. Hoos, Sr.
2001-02-11 10:36 ` Gautier
2001-02-11 11:15   ` Pascal Obry
2001-02-11 11:15   ` Jean-Pierre Rosen
2001-02-12 10:36     ` David C. Hoos, Sr.
2001-02-11 13:15   ` Larry Kilgallen
2001-02-11 14:50   ` Ken Garlington
2001-02-11 15:58   ` Florian Weimer
2001-02-11 17:05   ` Aaro Koskinen
2001-02-15 23:47   ` Robert Brantley
2001-02-16 15:20     ` Ted Dennison
     [not found]       ` <cyik6.1725$DE.61421700@newssvr10-int.news.prodigy.com>
     [not found]         ` <%Wvk6.102$aw5.380@www.newsranger.com>
2001-02-21  0:33           ` Ken Garlington
2001-02-21 10:54             ` Ole-Hjalmar Kristensen
2001-02-21 12:40               ` Ken Garlington
2001-02-21 12:56                 ` Ole-Hjalmar Kristensen
2001-02-21 18:36             ` Brian Rogoff
2001-02-21 19:05               ` Marin David Condic
2001-02-21 21:26                 ` Simon Wright
2001-02-23 21:05                   ` Marin David Condic
2001-02-24  8:38                     ` Simon Wright
2001-02-24 16:22                     ` Nick Williams
2001-02-24 19:22                       ` Marin David Condic
2001-02-24 19:38                         ` Ken Garlington
2001-02-25 15:21                           ` Marin David Condic
2001-02-12 15:33 ` Ted Dennison [this message]
2001-02-12 22:34   ` UML (Was: Ada to C++ translator?) Frode Tennebø
2001-02-14  4:48     ` Ken Garlington
2001-02-14  6:19       ` Ray Blaak
2001-02-14 20:38       ` Nick Williams
2001-02-15  7:57         ` Ray Blaak
2001-02-15 11:14           ` Pierre Dissaux
2001-02-15 23:37   ` Ada to C++ translator? Robert Brantley
2001-02-16  0:34     ` tmoran
2001-02-16  4:59       ` Lao Xiao Hai
2001-02-16 15:20         ` Marin David Condic
2001-02-16 11:02     ` Tarjei T. Jensen
2001-02-16 13:34       ` Ken Garlington
2001-02-16 14:55         ` Marin David Condic
2001-02-16 21:04         ` tmoran
2001-02-16 15:44     ` Ted Dennison
2001-02-21 13:21       ` Bob Jacobs
2001-02-21 14:14         ` Ted Dennison
2001-02-21 14:59           ` Bob Jacobs
2001-02-21 15:58         ` Martin Dowie
2001-02-21 16:15           ` Bob Jacobs
2001-02-21 16:57             ` Ted Dennison
2001-02-22  1:39               ` Andrew Berg
2001-02-22  9:47                 ` STL for Ada (was: Re: Ada to C++ translator?) Stefan Nobis
2001-02-22 15:20                   ` Lutz Donnerhacke
2001-02-22 15:30                   ` Ted Dennison
2001-02-22 17:55                   ` Brian Rogoff
2001-02-22  9:09             ` Ada to C++ translator? Martin Dowie
2001-02-22 13:32               ` Bob Jacobs
2001-02-22 14:30               ` Ted Dennison
2001-02-22  9:17             ` Martin Dowie
2001-02-15 23:09 ` Robert Brantley
  -- strict thread matches above, loose matches on Subject: below --
2001-02-22 10:40 gautier
2001-02-22  9:24 gautier
2001-02-22 10:21 ` Martin Dowie
2001-02-21 15:44 gautier
1998-02-04  0:00 Ada to C translator ? Stewart French
1998-02-05  0:00 ` Gautier
1994-11-16 13:10 Eric Labbe
replies disabled

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