From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6cd72e4ebbd9b644 X-Google-Attributes: gid103376,public From: dewar@gnat.com Subject: Re: Are there any automatic tools to convert ada83 source to ada95? Date: 1998/12/28 Message-ID: <767d0c$ver$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 426362377 References: <766lh7$dro$1@nnrp1.dejanews.com> X-Http-Proxy: 1.0 x13.dejanews.com:80 (Squid/1.1.22) for client 129.37.100.181 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Dec 28 07:46:20 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1998-12-28T00:00:00+00:00 List-Id: In article <766lh7$dro$1@nnrp1.dejanews.com>, yaowei@tonghua.com.cn wrote: > I have a large system written in ada83, I intend to > transit it to ada95, Are > there any automatic tools to perform this task? Any > suggestion will be appreciated. Well the first order reply to your question is yes, cp (i.e. the copy command), since Ada 83 is pretty much compatible with Ada 95. The actual situation is that going to an Ada 95 compiler should be no more difficulty than going to another Ada 83 compiler, which is to say it may be almost no effort, if you have written carefully portable code, to quite a lot of effort if you have not. But generally we have found that people have had very good success in the case of moving large applications to GNAT. This is partly because we have designed GNAT to make this port easy (all Ada 83 pragmas and attributes supported, and a large selection of non-required rep clauses typically found in Ada 83 programs recognized etc), but the task should be reasonable no matter what Ada 95 compiler you use. The one thing to be careful of is optional annexes. GNAT implements all of them, but this is not true of other Ada 95 compilers, and you should be sure to check that the subset of annexes supported meets your needs. For example if you have a real time application that depends on priorities, make sure the real time annex is supported. Now if you are asking the more difficult question of whether there are tools to help you transition the *style* of your code to take more advantage of Ada 95 features, such as tagged types, and protected objects, then I know of no such tools, and I doubt in practice that it would be practical to create tools of this kind that were really useful. Generally the best approach is to transition your Ada 83 application to Ada 95 with minimal changes, then to gradually introduce Ada 95 features as they make sense. Robert Dewar Ada Core Technologies -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own