ACM Home Page
Please provide us with feedback. Feedback
Short INTEGERS in standard Fortran 77
Full text PdfPdf (123 KB)
Source ACM SIGPLAN Fortran Forum archive
Volume 2 ,  Issue 3  (September 1983) table of contents
Pages: 9 - 10  
Year of Publication: 1983
ISSN:1061-7264
Author
Jerrold L. Wagener  Amoco Research Center, Tulsa OK
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 3,   Downloads (12 Months): 35,   Citation Count: 0
Additional Information:

abstract   collaborative colleagues  

Tools and Actions: Review this Article  
Save this Article to a Binder    Display Formats: BibTex  EndNote ACM Ref   
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1040935.1040936
What is a DOI?

ABSTRACT

Standard Fortran 77 has an INTEGER data type, but only one size of integers. On a 32-bit word-size machine an INTEGER will normally occupy 32 bits, or four 8-bit bytes, and can contain an integer magnitude in excess of 2 billion. Often an application deals with integer values of far less magnitude than this, and in such cases, especially where memory is not abundant, it is advantageous to use smaller storage units for integer values. The most common situation is when the integer values are not greater than 32767 in magnitude, in which case two bytes (16 bits) of storage are sufficient. Many Fortran compilers allow short integer declarations, in the form of INTEGER*2, to provide for two-byte integer storage. In some cases even one byte is sufficient (for example when the integer magnitude is not greater than 127), and INTEGER*1 is provided by an occasional compiler.