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,31403a0a3ad84da4 X-Google-Attributes: gid103376,public From: Gautier de Montmollin Subject: Re: FORTRAN to ADA transl Date: 1998/11/09 Message-ID: <364752C1.2B8745C1@maths.unine.ch>#1/1 X-Deja-AN: 410039489 Content-Transfer-Encoding: 7bit References: <3647382E.42E6B4BD@cisi.fr> To: armand.puccetti@cisi.fr Content-Type: text/plain; charset=us-ascii Organization: Universite de Neuchatel MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-11-09T00:00:00+00:00 List-Id: > Does anyone know about some translator from FORTRAN to ADA, especially > for F77 and Ada95? Even a partial translation would help. That perl script will do the job: ftp://ftp.usafa.af.mil/pub/dfcs/carlisle/f2ada.pl I have used it many times to translate numerical code. > Ah, one constraint: my Fortran S/W is critical in terms of precision, > that means both codes should use the same representation for reals and > the same precision. To be sure: find (even by testing) the precision of the fortran floats and specify it with a "delta" in Ada. In general (but to verify), FORTRAN real is Ada float; double or real*8 is long_float, etc. On DEC AXP machines it's the case. You can even interface built-in FORTRAN routines (like Lapack) with your Ada code. -- Gautier -------- Homepage: http://www.unine.ch/math/Personnel/Assistants/Gautier/Montmollin.html Software: http://www.unine.ch/math/Personnel/Assistants/Gautier/Gaut_FTP.htm.