12 Fortran 2003 Features

HP Fortran partly supports the Fortran standards 2003 as defined by ISO/IEC 1539-1:2004(E). This chapter explains the supported fortran 2003 features.

Interoperability with C

HP-UX fortran compiler supports the fortran 2003 standard mechanism to allow communication between fortran code and C code. The intrinsic module ISO_C_BINDINGcontains named constants that hold kind type parameter values for intrinsic types for interoperability between C and Fortran. Interoperability of Intrinsic types, C pointers, Derived types, Variables, global data and procedures are supported in the HP-UX fortran compiler.

Input/output enhancements

Input/output fortran 2003 enhancements are partially supported in HP-UX fortran compiler. The following features are supported.

•IOMSG= specifier

•ROUND= specifier

•DECIMAL= specifier

•SIGN= specifier

•Intrinsic function for newline character

•Input and output of IEEE exceptional values

•Comma after a P edit descriptor

Currently, the following features are not supported.

•Stream access input/output

•Kind type parameters of integer specifiers

•Recursive input/output

Miscellaneous enhancements

HP-UX fortran compiler supports following miscellaneous fortran 2003 features.

•Assignment to an allocatable array

•Pointer INTENT

•The VOLATILE attribute

•Array constructor syntax

•The IMPORT statement

•Intrinsic modules

•Access to the computing environment

•Lengths of names and statements

•Binary, octal and hex constants

•Specification and initialization expressions

•Complex constants

•Changes to intrinsic functions

Interoperability with C 151

Page 151
Image 151
HP UX Fortran Software manual Fortran 2003 Features, Interoperability with C, Input/output enhancements