Fax: +44(0)1865 300 232

Programs for Programmers

Windows Fortran Compiler Comparisons - Supported Language

 

 

 

Language Feature Absoft ftn95 g95 gfortran intel Lahey PGI NAG
Fortran 95 Yes Yes Yes Yes Yes Yes Yes Yes
TR15581 (Allocatable dummy arguments, derived type components etc.) Yes No Yes Yes Yes Yes Yes Yes
OpenMP Yes No No Yes Yes No Yes Yes
Tabbed source form Yes Yes Yes Yes Yes Yes Yes Yes
Symbolic names with $ Yes Yes Yes Yes Yes Yes Yes Yes
Hollerith data Yes Yes Yes Yes Yes Yes Yes Yes
DOUBLE COMPLEX Yes Yes Yes Yes Yes Yes Yes Yes
Varying length for named COMMON Yes Yes Yes Yes Yes Yes Yes Yes
Mix numeric and character in COMMON and EQUIVALENCE Yes Yes Yes Yes Yes Yes Yes Yes
INTEGER*n 1,2,4,8 1,2,4,8 1,2,4,8 1,2,4,8,16 1,2,4,8 1,2,4,8 1,2,4,8 1,2,4,8
LOGICAL*n 1,2,4,8 1,2,4 1,2,4,8 1,2,4,8,16 1,2,4,8 1,2,4,8 1,2,4,8 1,2,4,8
REAL*n 4,8,16 4,8,102 4,8,10 4,8,10,16 4,8,16 4,8,16 4,8 4,8,16
Language Feature Absoft ftn95 g95 gfortran intel Lahey PGI NAG
VAX style debug (D) lines Yes No Yes Yes Yes No Yes No
C style string constants (e.g. 'hello \n world') Option No Option Option Option No Option No
VAX style STRUCTURE, RECORD, UNION etc. Yes No No No Yes Yes Yes No
Initialization in TYPE statements Yes Yes Yes Yes Yes Yes Yes No
ENCODE and DECODE Yes No No No Yes Yes Yes No
variable format expressions using <> No No No No Yes Yes No No
 \  edit descriptor No Yes Yes No Yes Yes No No
Q edit descriptor Yes No No No Yes Yes Yes No
$ edit descriptor Yes Yes Yes Yes Yes Yes Yes No
in line assembler No Yes No No No No No No
CRAY Pointers Yes No No Yes Yes Yes Yes No
OPEN for "Transparent" or stream I/O (e.g. FORM='BINARY') Yes Yes Yes Yes Yes Yes Yes Yes
Language Feature Absoft ftn95 g95 gfortran intel Lahey PGI NAG
Get Command Line Yes Yes Yes Yes Yes Yes Yes Yes
Get Environment Variable Yes Yes Yes Yes Yes Yes Yes

Yes

Invoke External command Yes Yes Yes Yes Yes Yes Yes Yes
Get Files in Directory Yes1 Yes No No Yes Yes1 No Yes
Get File Size, Date, Attributes Yes Yes Yes Yes Yes Yes Yes Yes
VAX style system intrinsics (SECNDS etc.) Yes No Yes Yes Yes Yes Yes No
Unix style system library (getenv, etime etc.) Yes No Yes Yes Yes Yes Yes Yes
Posix style library (pxfputc, pxfopen etc.) No No No No Yes No No No
 
Notes
1 The Win32 API call must be used
2 FTN95 also allows REAL*16 which occupies 16 bytes but with only 10 bytes used