This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: iso_fortran_env


Janne Blomqvist wrote:
Steve Kargl wrote:
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?

IIRC file storage size is the number of bits per storage element. E.g. when you do a inquire(iolength) you get the answer as an integer multiple of the file storage size.

No -- when you do an INQUIRE(IOLENGTH=), you get the answer in units of the file storage unit. If you want the answer in units of bits, you have to multiply it by file_storage_size yourself.


That is, for a 32-bit default integer, and an 8-bit file storage unit, INQUIRE(IOLENGTH=J) I, for I declared as default integer, will normally result in J=4.

- Brooks


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]