HP 3000 Manuals

Ch 10. Data Format in Memory [ HP FORTRAN 77/iX Reference ] MPE/iX 5.0 Documentation


HP FORTRAN 77/iX Reference

Chapter 10  Data Format in Memory 

HP FORTRAN 77 has the following data types:

---------------------------------------------------------------------------------------------
|                                             |                                             |
|                General Name                 |                  Data Type                  |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| Integer                                     | BYTE (LOGICAL*1)                            |
|                                             |                                             |
|                                             | INTEGER*2                                   |
|                                             |                                             |
|                                             | INTEGER*4                                   |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| Real                                        | REAL*4                                      |
|                                             |                                             |
|                                             | REAL*8                                      |
|                                             |                                             |
|                                             | REAL*16                                     |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| Complex                                     | COMPLEX*8                                   |
|                                             |                                             |
|                                             | COMPLEX*16                                  |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| Logical                                     | LOGICAL*2                                   |
|                                             |                                             |
|                                             | LOGICAL*4                                   |
|                                             |                                             |
---------------------------------------------------------------------------------------------
|                                             |                                             |
| Character                                   | CHARACTER                                   |
|                                             |                                             |
---------------------------------------------------------------------------------------------

In addition, the Hollerith format is available for compatibility with
older programs and with some system routines.

This chapter describes the format of each data type when stored in
memory.


NOTE In the floating-point formats, when dealing with numbers at or close to the limits of the range, a program can exceed the range during ASCII-to-binary conversion and vice-versa. This is due to rounding errors.

NOTE Make sure all variables are properly initialized. The MPE/iX Link Editor does not initialize all the stack space as the Segmenter does on MPE V. Uninitialized variables that did not cause problems on MPE V/E-based systems might cause programs to abort on MPE/iX-based systems. HP FORTRAN 77/V stores variables greater than eight bytes indirectly; HP FORTRAN 77/iX stores the variables directly.


MPE/iX 5.0 Documentation