Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Compiling old F77 code in CVF 6.6

dumpty
Beginner
632 Views
Hello all,

I'm newbie in fortran and need some advice about compilation old code.
I've got big old project and sources and compiled binaries which properly work under dos. but when I compiling (without compilation error) this sources in CVF program not working like DOS versions. As usual all errors apears when reading files with data.

So what I have to do to compile this code.

Regards,
Dmitriy.

Message Edited by dumpty@sun-tel.net on 12-02-2004 01:18 PM

0 Kudos
4 Replies
Steven_L_Intel1
Employee
632 Views
It is likely that the problem is not "old F77" code but rather code (or data) that depends on Microsoft DOS Fortran features.
If you are using the visual development environment, try setting Projects..Settings..Fortran..Compatibility..PowerStation..I/O Format From the command line, that's /fpscomp:ioformat
0 Kudos
dumpty
Beginner
632 Views
thanks for your kindly reply Steve.
Is this have to work with direct access files too?
0 Kudos
Steven_L_Intel1
Employee
632 Views
If you're reading old direct access files, select the "General" (/fpscomp:general) option too. Hmm, you may also need, under Data, "Use bytes as RECL= unit for unformatted files" (/assume:byterecl).

Message Edited by sblionel on 12-02-2004 04:48 PM

0 Kudos
Paul_Curtis
Valued Contributor I
632 Views
Note that the DOS code was 16-bit, and thus the data files probablyassume 16-bit integers and so forth, whereas CVF (and IVF) are intrinsically 32-bit. This sort of issue can be dealt with by modifying the file read routines to use explicitly declared 16-bit arrays (or whatever) for accessing the old files.
0 Kudos
Reply