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

Compiler settings

michael_green
Beginner
1,389 Views
I'm having trouble with compiler settings. I have an old F77 program (from VMS/alpha site) which used the /EXTEND_SOURCE setting - it has some source lines of 80 characters.

If I tediously edit the source and convert all lines to 72 characters max, I can "use" some F90 modules within it and compile and link using all the defaults. But editing takes a long time and I'd like to use the /extend_source option in the project settings/Fortran tab. But it doesn't quite work - something goes wrong with the F90 source files that I'm "using" in the project.

So what settings do I need in order to compile and link a project that consists of an F77 source file having long lines, with several F90 modules, some of which are "used", and one of which is just a collection of subroutines that are called?

With many thanks in advance

Mike
0 Kudos
2 Replies
Steven_L_Intel1
Employee
1,389 Views
At present, if you use /extend_source, that implies /source_form:fixed, thus causing your free-form sources to compile incorrectly. It is that way in Compaq Fortran too. I have (successfully, I think) argued that this is not a desireable behavior and I think it will change in a future release.
The workaround for now is to set ./extend_source as an option on the individual fixed-form source files, rather than the whole project.
0 Kudos
Steven_L_Intel1
Employee
1,389 Views
At present, if you use /extend_source, that implies /source_form:fixed, thus causing your free-form sources to compile incorrectly. It is that way in Compaq Fortran too. I have (successfully, I think) argued that this is not a desireable behavior and I think it will change in a future release of Intel Fortran; I don't know if the change will make its way into HP Fortran.
The workaround for now is to set ./extend_source as an option on the individual fixed-form source files, rather than the whole project.
0 Kudos
Reply