T.R | Title | User | Personal Name | Date | Lines |
---|
2082.1 | Confirmed | WIBBIN::NOYCE | Pulling weeds, pickin' stones | Mon Feb 03 1997 16:10 | 6 |
| On OpenVMS VAX and OpenVMS Alpha, "int" and "long int" are
each 4 bytes long.
On Digital UNIX, "long int" is 8 bytes long.
To get an 8-byte integer type on OpenVMS Alpha, use "__int64".
|
2082.2 | | DECCXL::WIBECAN | That's the way it is, in Engineering! | Tue Feb 04 1997 09:12 | 3 |
| >> To get an 8-byte integer type on OpenVMS Alpha, use "__int64".
Or include "ints.h" and use "int64" and "uint64".
|
2082.3 | 32-bit by default, 64-bit available... | XDELTA::HOFFMAN | Steve, OpenVMS Engineering | Tue Feb 04 1997 11:00 | 17 |
|
: Can some one confirm for me how long types 'int' and 'long int' are on
: OpenVMS VAX and OpenVMS Alpha with the current release of DEC C?
The same as they always have been -- by default, DEC C uses 32-bit
(four byte) pointers on both OpenVMS platforms, and 32-bit variables
for both "int" and "long int" datatypes.
: It seemed to me at one point that both of these were 4 bytes but a
: customer is confused as he has heard different answers.
Skim through the Guide to 64-bit Addressing in the V7.0 (and later)
OpenVMS manual set.
Mechanisms for using longer pointers and longer integers are covered
in the DEC C documentation...
|