comp.lang.ada
 help / color / mirror / Atom feed
From: Chris Morgan <mihalis@ix.netcom.com>
Subject: Re: Are there any automatic tools to convert ada83 source into ada95?
Date: 1998/12/28
Date: 1998-12-28T14:58:36-08:00	[thread overview]
Message-ID: <87vhiv3m7j.fsf@mihalis.ix.netcom.com> (raw)
In-Reply-To: F4p2ID.9Kq.0.-s@inmet.camb.inmet.com

stt@houdini.camb.inmet.com (Tucker Taft) writes:

> changweimin@my-dejanews.com wrote:
> 
> : I have a big system written in Ada83, with millons of lines. I intend to
> : transit the system to Ada95, Are there any automatic tools to convert ada83
> : source into ada95? Any suggestion will be appreciated.
> 
> Yes, it is called an Ada 95 compiler ;-).  Seriously, there is no reason
> to change your millions of lines of Ada 83 code.  It should compile
> as is, or with very minor changes, by any Ada 95 compiler.  

This is absolutely correct, grab an Ada95 compiler and just give it a
go! 

I worked on a system which was getting on for 2 million lines of Ada83
ode. There were several individual problems here and there with our
coding style, but none more serious than we found going from one Ada83
compiler to another. The only systematic problem was that our
exception handlers were standardised with

   ...
when CONSTRAINT_ERROR =>
  DO_SOMETHING;
when NUMERIC_ERROR =>
  DP_SOMETHING_ELSE;
   ...

which is no longer legal.

Chris
-- 
Chris Morgan <mihalis at ix.netcom.com>		http://www.mihalis.net




  reply	other threads:[~1998-12-28  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-12-28  0:00 Are there any automatic tools to convert ada83 source into ada95? changweimin
1998-12-28  0:00 ` Tucker Taft
1998-12-28  0:00   ` Chris Morgan [this message]
1998-12-29  0:00     ` robert_dewar
1998-12-29  0:00       ` Chris Morgan
1998-12-30  0:00         ` Robert A Duff
1998-12-31  0:00           ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
1998-12-28  0:00 changweimin
replies disabled

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