From: | Michael Fuhr <mike(at)fuhr(dot)org> |
---|---|
To: | "Frank D(dot) Engel, Jr(dot)" <fde101(at)fjrhome(dot)net> |
Cc: | postgresql <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: [BUGS] My postmaster just crashed ! |
Date: | 2005-01-27 20:10:38 |
Message-ID: | 20050127201038.GA46811@winnie.fuhr.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-general |
On Thu, Jan 27, 2005 at 03:00:06PM -0500, Frank D. Engel, Jr. wrote:
> I think it is an internal thing with gcc that the size of a pointer and
> sizeof(int) are always the same, regardless of machine word size...
> with a 64-bit binary, sizeof(int) and sizeof(void *) should both be 8,
> which still causes them to be equal.
Not with gcc 3.4.2 on Solaris 9/sparc -- maybe you're thinking of
sizeof(long).
% cat foo.c
#include <stdio.h>
int
main(void)
{
printf("sizeof(void *) = %d\n", sizeof(void *));
printf("sizeof(int) = %d\n", sizeof(int));
printf("sizeof(long) = %d\n", sizeof(long));
return 0;
}
% gcc -m32 -o foo foo.c
% ./foo
sizeof(void *) = 4
sizeof(int) = 4
sizeof(long) = 4
% gcc -m64 -o foo foo.c
% ./foo
sizeof(void *) = 8
sizeof(int) = 4
sizeof(long) = 8
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-01-27 20:35:00 | Re: 8.0.0 make check fails on Solaris 9 (sparc) |
Previous Message | Tom Lane | 2005-01-27 20:01:14 | Re: [GENERAL] My postmaster just crashed ! |
From | Date | Subject | |
---|---|---|---|
Next Message | Don Isgitt | 2005-01-27 20:33:30 | Re: [real] postgress gnuplot and Geometric |
Previous Message | Bricklen Anderson | 2005-01-27 20:03:10 | Re: Oracle and PostgreSQL |