| Title: | VAX and Alpha VMS |
| Notice: | This is a new VMSnotes, please read note 2.1 |
| Moderator: | VAXAXP::BERNARDO |
| Created: | Wed Jan 22 1997 |
| Last Modified: | Fri Jun 06 1997 |
| Last Successful Update: | Fri Jun 06 1997 |
| Number of topics: | 703 |
| Total number of notes: | 3722 |
OpenVMS Alpha V7.1
DEC C V5.5
Hello !
Here is what says the size of long is 4 bytes and integer is also 4 bytes.
Where as in digital unix DEC C long size is 8 bytes. Since OpenVMS
is also 64 bit , can any bodyexplain why the size of long is 4 bytes?
How can show that pointer size is 64 bit and is there any way to check pls.
Thx in advance
Regards
Nagaraj Hegde
size of the long is:4
size of the int is:4
size of the double is:8
#include <stdio.h>
#include <stdlib.h>
main()
{
printf("size of the long is:%d\n",sizeof(long));
printf("size of the int is:%d\n",sizeof(int));
printf("size of the double is:%d\n",sizeof(double));
}
================== RFC 822 Headers ==================
Return-Path: [email protected]
Received: by qcav01.qca.dec.com (UCX V3.2 VAX)
Thu, 10 Apr 1997 15:25:37 +0500
Received: from archie.xko.dec.com by mail1.digital.com (5.65 EXP 4/12/95 for V3.2/1.0/WV)
id AA11280; Thu, 10 Apr 1997 02:10:59 -0700
Date: Thu, 10 Apr 1997 14:33:14 -2359
Message-Id: <[email protected]>
From: [email protected]
To: [email protected]
Subject: DEC C problem...
X-Vms-To: SMTP%"[email protected]"
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 442.1 | MOVIES::WIDDOWSON | Rod OpenVMS Engineering. Project Rock | Thu Apr 10 1997 10:10 | 1 | |
$ Help CC /POINTER_SIZE | |||||
| 442.2 | TURRIS::DECC | XDELTA::HOFFMAN | Steve, OpenVMS Engineering | Thu Apr 10 1997 11:32 | 11 |
:Where as in digital unix DEC C long size is 8 bytes. Since OpenVMS :is also 64 bit , can any bodyexplain why the size of long is 4 bytes? In a word, compatibility. : How can show that pointer size is 64 bit and is there any way to check pls. As mentioned, HELP CC /POINTER. Better -- since this is specifically a DEC C question and not an OpenVMS question -- see the DEC C notes conference at TURRIS::DECC. There have been various other similar discussions of this particular topic in that conference... | |||||