Download FORTRAN 77 Language Reference
Transcript
INTEGER The integer data type, INTEGER, holds a signed integer. The default size for INTEGER with no size specified is 4, and is aligned on 4-byte boundaries. However, these defaults can be changed by compiling with certain special options (see “Size and Alignment of Data Types” on page 31). INTEGER*2 ✠ The short integer data type, INTEGER*2, holds a signed integer. An expression involving only objects of type INTEGER*2 is of that type. Using this feature may have adverse performance implications, and is not recommended. Generic functions return short or long integers depending on the default integer type. If a procedure is compiled with the –i2 flag, all integer constants that fit and all variables of type INTEGER (no explicit size) are of type INTEGER*2. If the precision of an integer-valued intrinsic function is not determined by the generic function rules, one is chosen that returns the prevailing length (INTEGER*2) when the –i2 compilation option is in effect. With –i2, the default length of LOGICAL quantities is 2 bytes. Ordinary integers follow the FORTRAN rules about occupying the same space as a REAL variable. They are assumed to be equivalent to the C type long int, and 2-byte integers are of C type short int. These short integer and logical quantities do not obey the standard rules for storage association. An INTEGER*2 occupies 2 bytes. INTEGER*2 is aligned on 2-byte boundaries. INTEGER*4 ✠ The integer data type, INTEGER*4, holds a signed integer. An INTEGER*4 occupies 4 bytes. INTEGER*4 is aligned on 4-byte boundaries. INTEGER*8 ✠ The integer data type, INTEGER*8, holds a signed 64-bit integer. An INTEGER*8 occupies 8 bytes. INTEGER*8 is aligned on 8-byte boundaries. 28 FORTRAN 77 Language Reference • May 2000
Related documents
COPYRIGHT NOTICE for An Enhanced
Polysun Tutorial PDF
European Project Semester “Multilevel Inverter” - e
Fortran Programming Guide
Post Processing
Fortran Library Reference
DesignScript summary:
Dyninst User Manual - Home Page - University of Wisconsin–Madison
Fortran User's Guide - Physics at Oregon State University
Parallel Switch and Bus Transfer Switch for
Logic Engine User Manual - Computer Science
Fortran 95: curso básico (versão preliminar)