re: Upgrading an OLD (Fortran Powerstation 4.0) compiler

From: Alex Gibson (news_at_alxx.net)
Date: 03/12/05


Date: Sat, 12 Mar 2005 19:59:47 +1100


"Elton" <newsuser@dataforpros.com> wrote in message
news:42322242$1_1@127.0.0.1...
> 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
> silent.
>
> 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,
> E.T.

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

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
developed

ivf - Intel Visual fortran , sucessor to CVF
http://developer.intel.com/software/products/compilers/windows/

Absoft - don't know I've never used the windows version
http://www.absoft.com/

Lahey - don't know I've never used it, they have win32 and dot net compilers
http://www.lahey.com/

FTN95 - Silverfrost , was Salford, they have win32 and dot net compilers,
best checking of errors/diagnostics. have a free personal edition
http://www.silverfrost.com/11/ftn95/overview.asp

NA software Fortran Plus ??
http://www.nasoftware.co.uk

gfortran - beta of f95 from gnu (open source)
http://www.gfortran.org/index.php?n=Main.Windows?

g95 - another fortran 95 (opensource ?) project also beta
http://g95.sourceforge.net/

With vb6 you used to be able to do it like

vb program
Declare Sub FortranCall Lib "Fcall.dll" (r1 As Single, num As Single)

fortran subroutine
 SUBROUTINE FortranCall (r1, num)
    implicit none
    !DEC$ ATTRIBUTES DLLEXPORT :: FortranCall
    !DEC$ ATTRIBUTES ALIAS:'FortranCall' :: FortranCall

    REAL,INTENT(IN) :: r1 ! Input argument
    REAL,INTENT(OUT) :: num

            num = r1*r1

   return
   END SUBROUTINE

Some good info here
http://www.canaimasoft.com/f90VB/OnlineManuals/Default.htm

Alex Gibson



Relevant Pages

  • Re: Fortran module checking
    ... Or are there compile options that should be invoked to ensure that USE ... finding or understanding Fortran module variables. ... end subroutine assign_values ...
    (comp.lang.fortran)
  • Re: reading more data than the record size (RECL)
    ... end snip ... This overhead is there to allow Fortran ... compile the original source code with g95, ... Think of it as a variant on the ASCII vrs ...
    (comp.lang.fortran)
  • Re: INCLUDE file
    ... Luca Pignagnoli wrote: ... > My question is how to split a very big Fortran code into subprogram ... statement "subroutine hello " = thereby introducing the next program ... The solution for this is not to use include statements but to compile ...
    (comp.lang.fortran)
  • Re: Fortran programmerss favorite report-writing tools
    ... preprocessing to compile so it's easy to add to existing code. ... same input method as when fortran was first invented. ... and the compiler is then translating it into machine code. ... a good candidate for a formulat translator seems to be texmacs. ...
    (comp.lang.fortran)
  • Re: what is wrong with this code?can someone walk me through this?
    ... i dont know anything abt fortran or coding..this is my project at ... You CAN get your program to compile if you ... What are reasonable ranges for the input variables? ...
    (comp.lang.fortran)