Re: compatibility g77/gfortran ?



Thierry B. wrote:
Bonsoir.

I have a few old Linux box with g77 v3.4.6 where i run homemade
software. My new machine come with gfortran v4.1.2 and is a lot
faster, so I use it as my main developement area. Compile fine
all my old softwares.

And i'm looking for the best way (command line opt ?) to check
if the code that I write and compile with gfortran can also
be compiled and run on the old boxes.

Any link on a good documentation are welcome.

tTh.

Well, Sun's Studio Express compiler-set is available for Linux
free for commercial and nomcommercial use; see a number of posts
here by Bob Corbett of Sun.

When Sun "f95" is used with command-line flag "-f77", it acts
as a strict F77compiler and flags non-F77 features -- actually,
that's a bit more strict than "g77" is. And their compiler
has excellent diagnostics.

Actually, I find it worthwhile _always_ to run through multiple
compilers (Sun, Intel, PathScale, gfortran, g95); each has its
strengths and weaknesses for diagnostic messages...) I set it
up so that each compiler has its own "makeinclude.<bin>" file,
and then set up my "Makefile" so that "make bins" recursively
cycles through all the cases of "make bin=<compiler> all".

-- Carlie Coats

.



Relevant Pages

  • Re: gfortran : unknown functions itime and idate
    ... I get an error message saying that itime and idate are unknown. ... So another option is to use g77 instead of gfortran, if you are able to do so. ... and so would compile under g77. ...
    (comp.lang.fortran)
  • Re: gfortran real_size?
    ... I am trying to compile this same code use gfortran (or g77) instead ... but can't seem to work out what option I should substitute for this ...
    (comp.lang.fortran)
  • Re: g77 and gcc40
    ... > stuff" that works well with g77, but cannot be compiled with gfortran. ... which is contained in version of gcc prior to ... your F90/95 code may not compile with g77. ...
    (comp.lang.fortran)
  • Re: compatibility g77/gfortran ?
    ... My new machine come with gfortran v4.1.2 and is a lot ... if the code that I write and compile with gfortran can also ... be compiled and run on the old boxes. ... gfortran is intended to be a compatible replacement for g77 (except ...
    (comp.lang.fortran)
  • Re: migrating STRUCTURE and RECORD to g77 or gfortran
    ... What is the easiest way to migrate STRUCTURE and RECORD to g77 or gfortran? ... I have a collection of 1980-era sources, originally on VAX Fortran, that must ... derived type feature of Fortran 90 and later versions, ...
    (comp.lang.fortran)