iso_fortran_env

Brooks Moses bmoses@stanford.edu
Tue Aug 29 21:40:00 GMT 2006


Steve Kargl wrote:
> On Tue, Aug 29, 2006 at 08:52:44AM -0700, Vivek Rao wrote:
>>  integer, parameter :: Character_Storage_Size = 8
>>  integer, parameter :: Error_Unit = 0
>>  integer, parameter :: File_Storage_Size = 8
>>  integer, parameter :: Input_Unit = 5
>>  integer, parameter :: IOSTAT_END = -1
>>  integer, parameter :: IOSTAT_EOR = -2
>>  integer, parameter :: Numeric_Storage_Size = 32
>>  integer, parameter :: Output_Unit = 6
>>
>>end module ISO_FORTRAN_ENV 
> 
> Everthing above matches gfortran with the possible exception of
> File_Storage_Size and Numeric_Storage_Size.  I don't F2003
> handy.  What do these values means?

They're the size, in bits, of file storage units and numeric storage 
units, respectively.

9.2.4: "A file storage unit is the basic unit of storage in a stream 
file or an unformatted record file. It is the unit of file position for 
stream access, the unit of record length for unformatted files, and the 
unit of file size for all external files."

16.4.3.1: "A nonpointer scalar object of type default integer, default 
real, or default logical occupies a single numeric storage unit....  A 
nonpointer scalar object of type double precision real or default 
complex occupies two contiguous numeric storage units...."

- Brooks



More information about the Fortran mailing list