On 27 Jun 2002, Jeff Trawick wrote:
> So I guess sizeof(long) is 8 bytes on 64-bit HP-UX? sizeof(long) is
> still 4 on 64-bit AIX.
----------------------------
$ uname -a
HP-UX nova126 B.11.00 U 9000/785 2010844465 unlimited-user license
$ cat test.c
#include <stdio.h>
int main()
{
printf("%d\n",sizeof(long));
}
$ ./test
4
----------------------------
$ uname -a
HP-UX nova189 B.11.20 U ia64 2252765325 unlimited-user license
$ cat test.c
#include <stdio.h>
int main()
{
printf("%d\n",sizeof(long));
}
$ ./test
4
----------------------------
So, nope. Or maybe you have to compile in 64-bit mode? How does one do
that with HP-UX's cc?
--Cliff