re: Upgrading an OLD (Fortran Powerstation 4.0) compiler
From: Alex Gibson (news_at_alxx.net)
Date: Sat, 12 Mar 2005 19:59:47 +1100
"Elton" <firstname.lastname@example.org> wrote in message
> Our office has an extensive project that needs to be upgraded badly. It's
> currently in Fortran 77 format using MS Fortran PowerStation 4.0 as the
> complier. I'd keep working with this arrangement except for the need of a
> nice user interface and it seems NO ONE uses a dos/text interface anymore.
> I've found a file from my predecessor with a note that Microsoft turned
> into digital that turned into Compaq, but that's where the trail goes
> I'm looking for suggestions / information on upgrading FPS 4.0.
> Alternatively is it possible to integrate FPS with Visual Basic or C++ as
> the frontend interface?
> Thanks in advance,
Its a fairly easy process to update from f77 in powerstation to cvf/ivf
depending on your code ,any extensions used etc
Upgrade the command line app frist then add the graphical stuff.
1. convert to free form source
2. convert and compile as f90 and fix any errors
3. compile using different compilers
4. check results and get someone else to double check results as well
5. optional convert to f95
If just for windows , compile as a dll
then call from whatever language you decide to use for the graphical front
Quite easy to have one project and have different configurations for
commandline exe and as dll (just use different build directories).
C# is more like vb6 than vb.net(IMO)
Could use c, c++, c#,delphi, java , fortran , vb6 , vb.net .
compiler options for windows - most vendors have 30 day demo versions.
cvf - compaq visual fortran , still sold by HP, not actively maintained or
ivf - Intel Visual fortran , sucessor to CVF
Absoft - don't know I've never used the windows version
Lahey - don't know I've never used it, they have win32 and dot net compilers
FTN95 - Silverfrost , was Salford, they have win32 and dot net compilers,
best checking of errors/diagnostics. have a free personal edition
NA software Fortran Plus ??
gfortran - beta of f95 from gnu (open source)
g95 - another fortran 95 (opensource ?) project also beta
With vb6 you used to be able to do it like
Declare Sub FortranCall Lib "Fcall.dll" (r1 As Single, num As Single)
SUBROUTINE FortranCall (r1, num)
!DEC$ ATTRIBUTES DLLEXPORT :: FortranCall
!DEC$ ATTRIBUTES ALIAS:'FortranCall' :: FortranCall
REAL,INTENT(IN) :: r1 ! Input argument
REAL,INTENT(OUT) :: num
num = r1*r1
Some good info here