.f03 files
Brooks Moses
brooks.moses@codesourcery.com
Fri Jan 5 22:33:00 GMT 2007
Tobias Burnus wrote:
> Christopher D. Rickett wrote:
>> how difficult would it be to get gfortran to accept files with .f03/.F03
>> extensions?
>>
> Is there really a need for supporting this extension?
>
> Actually, .f = fixed form (Fortran 77, 90, 95, 2003, 2008) and .f90 =
> free form (Fortran 90, 95, 2003, 2008) should be enough. I don't think
> any compiler which supports .f95, .f03 / .f2003 treats those files any
> different than .f90 (or even .f with the -ffree-form option).
Even if a compiler doesn't treat them differently, it seems quite
reasonable to posit a makefile suffix rule that chooses compiler options
such as -std=f95 or -std=f2003 based on the use of a .f95 or .f03 file
suffix. Or even a human-based system that distinguishes them on that
basis -- if I'm compiling file.f03, I'll know I should use an F2003
compatible compiler and shouldn't use -std=f95, whereas I wouldn't
necessarily expect that for a file.f90.
- Brooks
More information about the Fortran
mailing list