comp.lang.ada
 help / color / mirror / Atom feed
From: "Christoph Karl Walter Grein" <AdaMagica@web.de>
To: comp.lang.ada@ada-france.org
Subject: Re: Moving from Ada 83 to Ada 95
Date: Thu, 25 Nov 2004 08:44:50 +0100
Date: 2004-11-25T08:44:50+01:00	[thread overview]
Message-ID: <mailman.118.1101368738.10401.comp.lang.ada@ada-france.org> (raw)

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




             reply	other threads:[~2004-11-25  7:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-25  7:44 Christoph Karl Walter Grein [this message]
  -- strict thread matches above, loose matches on Subject: below --
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
replies disabled

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