->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

 

Reply via email to