How to move on from Compaq Visual Fortran

In summary, the user is considering migrating from Compaq Visual Fortran to a more up-to-date compiler and IDE and is looking for guidance. They are trying Simply Fortran first and are noticing that some code expects specific routines from the CVF libraries which have been replaced by similar routines in the new Fortran development environment. They are also considering using a GNU compiler.
  • #1
belliott4488
662
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
  • #2
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.
 
  • #3
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...
 
  • #4
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.
 
  • #5
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.
 

FAQ: How to move on from Compaq Visual Fortran

How do I uninstall Compaq Visual Fortran from my computer?

To uninstall Compaq Visual Fortran, you can follow these steps:

  1. Go to the Control Panel on your computer.
  2. Select "Programs" or "Programs and Features".
  3. Find Compaq Visual Fortran in the list of installed programs.
  4. Click on it and select "Uninstall".
  5. Follow the prompts to complete the uninstallation process.

Is there a free alternative to Compaq Visual Fortran?

Yes, there are several free alternatives to Compaq Visual Fortran, such as GNU Fortran and G95. These are open-source compilers that can be downloaded and used for free. However, they may have different features and may require some adjustments to your code.

Can I still use my Compaq Visual Fortran programs with a different compiler?

Yes, most Fortran compilers are designed to be compatible with each other. However, there may be some differences in syntax or features, so you may need to make some adjustments to your code in order for it to run correctly on a different compiler.

How do I transfer my Compaq Visual Fortran projects to a different computer?

To transfer your Compaq Visual Fortran projects to a different computer, you can follow these steps:

  1. Copy the project folder from your current computer to a portable storage device.
  2. Install Compaq Visual Fortran on the new computer.
  3. Paste the project folder into the same location on the new computer.
  4. Open the project in Compaq Visual Fortran and make sure all necessary files are included.
  5. You may need to update any file paths or libraries to match the new computer's system.

Are there any resources available to help me learn how to use a different Fortran compiler?

Yes, there are many online resources available to help you learn how to use a different Fortran compiler. You can find tutorials, documentation, and forums on the compiler's website or through a simple internet search. You can also join online communities or forums where you can ask for help and advice from other users.

Similar threads

Replies
8
Views
3K
Replies
11
Views
897
Replies
13
Views
4K
Replies
2
Views
3K
Replies
4
Views
2K
Replies
9
Views
1K
Replies
4
Views
71K
Back
Top