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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9b2c6dfe50790879 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Fortran 77 to Ada Date: 1999/11/22 Message-ID: <81bojm$3kt$1@nnrp1.deja.com>#1/1 X-Deja-AN: 551642731 References: <18cf8f9c.09c1c234@usw-ex0108-062.remarq.com> <8152h5$n7e$1@nnrp1.deja.com> <3839167F.F9E3B57E@maths.unine.ch> X-Http-Proxy: 1.0 x43.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Nov 22 15:48:08 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-11-22T00:00:00+00:00 List-Id: In article <3839167F.F9E3B57E@maths.unine.ch>, gautier.demontmollin@maths.unine.ch wrote: > So, please do constructive answers when you don't know the > contents of the subject. Typically you decide it is pointless > before trying to know what shape the Fortran code has. Any automatic translation of Fortran code into Ada will result in just what you expect: Fortran code in Ada, and this is almost always a bad idea. The best way to extend such code is to do it in a modular way that allows new functionality to be added by adding new modules. There is of course no reason not to use mixed language (Fortran,Ada) for such a task, especially if you are using a compiler that fully implements Annex G (including the important pragma for using column major ordering of arrays, to be Fortran compatible). If the original code is not susceptible to being extended in a modular manner, then it probably should be reengineered in any case. The ideal thing is to do minimal reengineering in Fortran, to allow the necessary extension, but if major reengineering is needed then all the more need to recode instead of settling for the junk that comes out of automatic translators. There may be legitimate situations for using such automatic translators, but all I can say is a) I have seen dozens of cases in which people have tried to use such tools where it was inadvisable, and often people were doing it for the flimsiest of reasons. b) I have never seen one legitimate case where it was helpful Of course a lot depends on your quality standards. For me, the code coming out of automatic translators requires so much hand massaging to meet my minimal quality standards that the translators are useless. Sent via Deja.com http://www.deja.com/ Before you buy.