Author |
Need Old Fortran Compiler |
castersupmode
Member
Posts: 2
Joined: 31.05.20 |
Posted on May 31 2020 18:32 |
|
|
Hi Folks,
I have a large (~10,000 lines), historic application written in Fortran IV that I would like to build and demonstrate, but I cannot find any compiler for either modern or legacy platform (real or simulated) that will build it.
VAX is my last hope. So either a Fortran IV/66 compiler from the 1970s or an F77 compiler that has a legacy switch to digest Fortran IV and/or Fortran 66. So far none of the VAX Fortran documentation I've found indicate support for anything before f77.
Any help, tips or advice will be appreciated, Thanks! |
|
Author |
RE: Need Old Fortran Compiler |
abrsvc
Member
Posts: 108
Joined: 12.03.10 |
Posted on June 01 2020 04:18 |
|
|
The VAX F77 compiler should build it as far as I know. What are some of the things that won't "build" with the application? Nothing that is in FIV should be foreign to the F77 compiler. Please post some of the specific problems. Perhaps a few simple modifications might resolve the compilation issues.
Dan |
|
Author |
RE: Need Old Fortran Compiler |
castersupmode
Member
Posts: 2
Joined: 31.05.20 |
Posted on June 01 2020 04:47 |
|
|
In Fortran IV, there is no CHARACTER typing. You can put characters/strings into anything. Standard practice is to use integers and stick with that. This means you can also do math on your character strings (because they are integers), like increments to change the character to the next one in the alphabet.
You absolutely cannot do this in F77, unless the compiler has an -ff66 switch (like the GNU g77 does) to basically behave like a Fortran 66 compiler. None of the PDP/VAX F77 documentation mention any toleration for pre-f77 contructs. GNU no longer has g77 (since v3.4).
Not that I've tried the VMS compilers. I have not. I have tried gfortran with the -std=legacy switch, which seems to tolerate nothing older than F77.
So I thought perhaps a VAX simulator would have some Fortran compilers from the late 1970s that predate F77. |
|
Author |
RE: Need Old Fortran Compiler |
abrsvc
Member
Posts: 108
Joined: 12.03.10 |
Posted on June 01 2020 06:45 |
|
|
According to the DEC FORTRAN Language reference manual:
"DEC Fortran includes support for programs that conform to the previous dtandard (ANSI X3.9-1966)..."
Edited by abrsvc on June 08 2020 08:27 |
|
Author |
RE: Need Old Fortran Compiler |
wyan
Member
Posts: 11
Location: Leon, Spain
Joined: 28.03.06 |
Posted on June 08 2020 03:36 |
|
|
Incidentally, g77 should still be available on the net, my PhD fortran code (based on inherited g77 spaghetti and no longer maintained libraries) required it, so I had to keep using it well after it stopped being available in distros. |
|
Author |
RE: Need Old Fortran Compiler |
abrsvc
Member
Posts: 108
Joined: 12.03.10 |
Posted on June 08 2020 08:29 |
|
|
To the OP: I have a VAX with the F77 compiler as well as an Alpha with it too. Either send along the application for me to compile, or send me a representative module that fails. Use the PM option in this forum, so that the code is not made public.
Dan |
|