HP SunSoft Pascal 4.0 Bedienungsanleitung Seite 114

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 333
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 113
90 Pascal 4.0 Users Guide
6
The -c option produces an unlinked object file. The -calign option causes
pc to use C-like data formats for aggregate objects.
When you compile a Pascal main routine that calls C, you don’t have to use
any special options, but the -calign option is again useful. The C object
library, libc, is automatically brought in for every Pascal compilation.
For example:
hostname% cc -c my_c.c
hostname% pc -calign my_c.o my_pascal.p
Compatibility of Types for C and Pascal
Table 6-1 and Table 6-2 list the default sizes and alignments of compatible
types for C and Pascal.
Table 6-1 C and Pascal Size and Alignment of Compatible Types
Pascal Type C Type Size (bytes) Alignment (bytes)
double double 88
longreal double 88
real double 88
single float 44
shortreal float 44
integer16 short int 22
integer32 int 44
integer int 44
-128..127 char 11
boolean char 11
alfa char a[10
] 10 1
char char 11
string char a[80] 80 1
varying[n] of char struct {int, char[n]} - 4
record struct/union - Same as element type
Seitenansicht 113
1 2 ... 109 110 111 112 113 114 115 116 117 118 119 ... 332 333

Kommentare zu diesen Handbüchern

Keine Kommentare