comp.lang.ada
 help / color / mirror / Atom feed
* Moving from Ada 83 to Ada 95
@ 2004-11-24 20:53 vrenna
  2004-11-24 21:27 ` Pascal Obry
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: vrenna @ 2004-11-24 20:53 UTC (permalink / raw)


Has someone done such thing? I need to move a huge application made in Ada
83 and installed on Solaris, to Ada 95 (probably on Linux)... looks very
tough but maybe there're automatic tools and good advices out there. What do
you say?





^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: Moving from Ada 83 to Ada 95
@ 2004-11-25  7:44 Christoph Karl Walter Grein
  0 siblings, 0 replies; 8+ messages in thread
From: Christoph Karl Walter Grein @ 2004-11-25  7:44 UTC (permalink / raw)
  To: comp.lang.ada

I've moved a 800kLOC program from Ada83 running on Motorola 68040 to Ada95 running on IRIX, different compiler vendors, in a few weeks. Mostly an easy job - getting it to compile and run was a few days. What took the rest of the time was to find causes of crashes and non-portable code.

Problem areas:

Original code used overlays (for A use at X) for low level hardware access.
If you do such erroneous (in Ada83) things, take care that alignments match or else you will get segmentation error crashes.

Unchecked_Conversion often had different sizes on Source and Target. This leads to non-portability and funny results.
Additionally you have to be careful with alignment issues (RM 13.9(7)). Gnat however does the correct thing, even if alignments do not match.
________________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt neu bei WEB.DE FreeMail: http://freemail.web.de/?mc=021193




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-11-25 20:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-24 20:53 Moving from Ada 83 to Ada 95 vrenna
2004-11-24 21:27 ` Pascal Obry
2004-11-24 21:38 ` tmoran
2004-11-24 21:58   ` vrenna
2004-11-25  1:30 ` Jeffrey Carter
2004-11-25 11:28 ` Martin Dowie
2004-11-25 20:14 ` Björn Lundin
  -- strict thread matches above, loose matches on Subject: below --
2004-11-25  7:44 Christoph Karl Walter Grein

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