Chapter Contents |
Previous |
Next |
Code Generation Conventions |
The compiler implements the standard C data types as follows:
doubles
and
long doubles
are 8 bytes in length
and are aligned on an 8-byte (doubleword) boundary.
floats
are 4 bytes in length
and are aligned on a 4-byte boundary.
longs
and
ints
, both signed and unsigned, are
4 bytes in length and are aligned on a 4-byte (fullword) boundary.
shorts
and
unsigned shorts
are 2 bytes in length
and are aligned on a 2-byte (halfword) boundary.
signed
and
unsigned
char
are 1 byte (8 bits)
in length and are aligned on byte boundaries.
bytealign
compiler option, most data items, including all those in structures,
are generated with only character alignment.
All data types use the normal 370 representation. Data Type Characteristics summarizes the characteristics of the arithmetic data types.
Code that checks
float
or
double
objects for 0 by means of type punning (that is, examining the objects as
if they were
int
or some other nonfloating-point type) may assume
(falsely) negative 0 not to be 0.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.