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
8
8
longreal
double precision
8
8
real
double precision
8
8
single
real
4
4
shortreal
real
4
4
integer16
integer*2
2
2
integer32
integer*4
4
4
integer
integer*4
4
4
-128..127
logical*1
,
byte, or
character
1
1
boolean
logical*1
,
byte, or
character
1
1
alfa
character*10
10
1
char
character
1
1
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
4
4
integer
integer*2
2
2
Содержание SunSoft Pascal 4.0
Страница 14: ...xiv Pascal 4 0 User s Guide ...
Страница 16: ...xvi Pascal 4 0 User s Guide ...
Страница 30: ...6 Pascal 4 0 User s Guide 1 ...
Страница 160: ...136 Pascal 4 0 User s Guide 6 ...
Страница 268: ...244 Pascal 4 0 User s Guide 11 ...
Страница 320: ...296 Pascal 4 0 User s Guide B ...
Страница 331: ...Index 307 ...
Страница 333: ......