This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: V/S to GCC/G77 fortran conversion
- From: Bud Davis <bdavis9659 at sbcglobal dot net>
- To: mutsuura at mutsuura dot com, gcc at gcc dot gnu dot org
- Date: Thu, 4 May 2006 07:32:39 -0700 (PDT)
- Subject: RE: V/S to GCC/G77 fortran conversion
- Reply-to: Bud Davis <bdavis9659 at sbcglobal dot net>
->We have several fortran programs developed under MS' Visual Studio and
->would like to convert them to be GCC/G77 compatible.
->Short of converting the programs manaully, is anyone aware of a conversion
->package capable of doing the conversion automagically?
if you are willing to move to the 3.X version of gcc, there is an excellent fortran compiler (g77)
with many, many compiler options and features to run fortran-77 code from other compilers.
with gcc-4.X, gfortran is available. gfortran is not as lenient about non-standard code, but has
the advantage of supporting the modern language features.
IMHO, f2c is a poor replacement for g77; i would use g77 in almost every situation dealing with
old code.
As far as hand modifying the code, it is in most cases very small syntactic differences that can
be accomplished with a perl script or even spending a few minutes of time in the editor for
each file. Although many will disagree, fortran code is very portable between dialects; once the
compiler eats the code the results are usually as expected.
HTH,
bud davis