How to move on from Compaq Visual Fortran

  • Context: Fortran 
  • Thread starter Thread starter belliott4488
  • Start date Start date
  • Tags Tags
    Fortran Visual
Click For Summary

Discussion Overview

The discussion revolves around transitioning from Compaq Visual Fortran (CVF) to more modern Fortran compilers and IDEs. Participants explore the challenges associated with legacy code dependencies on CVF libraries and seek guidance on identifying and substituting these dependencies in new development environments.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant notes the need to identify dependencies on CVF libraries such as DFLIB.MOD and DFORRT.dll when migrating to a new compiler.
  • Another participant explains that most compilers have standard libraries that replace CVF libraries, but specific routines used in CVF may need to be isolated and replaced with alternatives in the new environment.
  • A suggestion is made to consider using the GNU Fortran compiler (GFortran) as a free and well-maintained alternative, along with Intel Fortran as a more expensive option that is a descendant of CVF.
  • It is mentioned that CVF extensions in the code should be identified and potentially removed before migration, as they are not part of the Fortran 77 standard.
  • A participant expresses their choice of Simply Fortran, citing its affordability and user-friendly IDE, while contemplating the removal of CVF module references from their source code.
  • Concerns are raised about the dependency of executables on CVF .dll files and whether compiling with a new compiler will resolve these issues by using its own versions of the necessary .dll files.

Areas of Agreement / Disagreement

Participants express a range of opinions on the best compiler options and approaches for migration, indicating that multiple competing views remain without a consensus on a single solution.

Contextual Notes

Participants highlight the potential need for examining source code for specific library routines and extensions, but do not resolve the implications of these dependencies on the migration process.

Who May Find This Useful

This discussion may be useful for software developers and engineers working with legacy Fortran code who are considering transitioning to modern compilers and IDEs.

belliott4488
Messages
661
Reaction score
1
My group at work uses several pieces of legacy Fortran code which we've always compiled using Compaq Visual Fortran. Since CVF has not been supported for while now and is not (easily) compatible with Windows 7, I'd like to move to a more up-to-date compiler and IDE. I'm trying Simply Fortran first, since it's inexpensive and has been recommended on this forum.

The thing I'm noticing is that our code seems to expect certain things - libraries, I suppose - that came with CVF. I've seen a reference to DFLIB.MOD, and I know that executables look for DFORRT.dll or DFORMD.dll.

How can I find out what dependencies I have on CDF and what I should substitute for them? I'm hoping there was nothing unique about their libraries so that I'll be able to find the same resources in some open-source libraries.

Any guidance will be much appreciated - thanks!
 
Technology news on Phys.org
Some compilers have a standard set of libraries which are searched when an executable file is being constructed from compiled code. These libraries provide routines which handle and display run time errors, for instance, or routines which do certain numerical calculations. Most of these libraries for the CVF will be replaced by similar ones in the new Fortran development environment you will be using.

If your old programs use specific library routines from CVF to access operating system functions or open a window, for instance, you will need to examine your Fortran source files and isolate these routines. Your new environment will have different routines which should be used for these tasks.
 
What about using a GNU compiler:

http://gcc.gnu.org/wiki/GFortran

Its open source, free and well maintained.

This is another alternative, Intel Fortran, a descendent of CVF:

http://software.intel.com/en-us/articles/migrating-from-compaq-visual-fortran

One issue that you could fix before migrating is removing any CVF extension used in your code or at least identify them.

These are extensions provided by CVF beyond what F77 standard says. They should be identifiable via a command-line flag during compile as warnings...
 
You've got two extremes here: GFortran (free) or Intel Fortran ($$$). There are good compilers priced in between these two products (like Lahey or Absoft) which provide some development tools. Most compilers now available use at least the Fortran 90/95 standard, of which Fortran 77 is a subset language.
 
Thanks, all.

I chose Simply Fortran because it is based on the GNU compiler but also provides a nice IDE. It's inexpensive - compared to Intel Fortran, at least - so I'm trying to see if I can get everything working with it before I bite the bullet (or have my employer do it) to get Intel Fortran.

It sounds like I might be able to manage simply by searching my source code for references to CVF modules and removing them (??). I know that the CVF compiler creates executables that are dependent on CVF .dll files, but maybe if I compile the code with the new compiler it will simply use its own versions of any .dll files.

This is not my primary task at work, so I'll be plugging away at it over the coming months, but I can post updates in case they're of interest to anyone else.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 13 ·
Replies
13
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
71K
  • · Replies 5 ·
Replies
5
Views
2K