
The FORTRAN–Pascal Interface 165
8
Table 8-2 lists the default sizes and alignments of compatible types for
FORTRAN and Pascal with the -xl option:
Precautions with Compatible Types
This section describes the precautions you must take when working with
character strings and array indexes.
Table 8-1 Default Sizes and Alignments of Compatible Types (Pascal and FORTRAN)
Pascal Type FORTRAN Type Size (Bytes) Alignment (Bytes)
double double precision 88
longreal double precision 88
real double precision 88
single real 44
shortreal real 44
integer16 integer*2 22
integer32 integer*4 44
integer integer*4 44
-128..127 logical*1
, byte, or
character
11
boolean logical*1
, byte, or
character
11
alfa character*10 10 1
char character 11
string character*80 80 1
varying[n]
of char
structure /v
/
integer*4
character*n
end structure
-4
array array Same as element type
record structure - 4
Table 8-2 Sizes and Alignments of Compatible Types (Pascal and FORTRAN) with –xl
Pascal Type FORTRAN Type Size (Bytes) Alignment (Bytes)
real real 44
integer integer*2 22
Komentarze do niniejszej Instrukcji