comp.lang.ada
 help / color / mirror / Atom feed
From: "Robert L. Klungle" <bklungle@gte.net>
Subject: Re: Ada->C++ conversion stats?
Date: 2000/03/21
Date: 2000-03-21T00:00:00+00:00	[thread overview]
Message-ID: <38D722C1.8B6C58F7@gte.net> (raw)
In-Reply-To: QDDB4.14$2K6.5733@news.pacbell.net

tmoran@bix.com wrote:

> Every once in a while we hear of something in Ada (presumably Ada 83)
> being rewritten in C++.  When that happens, is there a complete
> redesign, or just a transliteration?  If the former, how much effort
> is the rewrite as compared to the original (I realize the second
> time around is easier) and how does the result compare?  If a
> transliteration, how much effort, how many old bugs discovered
> and how much debugging time for new bugs and how does the result
> compare to the original.  If no comparison is available, is it
> because there's no record of the original or because there's no
> measurement of the new version, or what?

I can report on the conversion of an image tracker (MHT) from Ada83 to
C++ (just finishing).
Total time so far is 3.5 months to translate.
If I had to do it over again, I wouldn't. The rigors of the Ada syntax
make the looseness of C/C++ stand out.
The C++ version execution time is 3 times slower than the original Ada.
Primarily due to the implementation of an Array (Matrix) class as a
Class of Vectors-of-Vectors.
This was done to keep the matrix type of referencing ([][]). There is no
C++ operator to overload of this kind.
This is not the only contributor to execution time increases.
The resulting code is clumsy compared to the original Ada.
All kinds of optimizations were/are being done to keep the speed up, but
the above is the best we have been able to do so far.
It works just like the original, but slower.

cheers...bob





  reply	other threads:[~2000-03-21  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-21  0:00 Ada->C++ conversion stats? tmoran
2000-03-21  0:00 ` Robert L. Klungle [this message]
2000-03-21  0:00   ` Hyman Rosen
2000-03-22  0:00     ` Gerald Kasner
2000-03-21  0:00   ` Hyman Rosen
2000-03-21  0:00   ` Robert Dewar
replies disabled

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