From: brinkmann@nmsu.edu
To: axp-list@redhat.com
Subject: GCC 64 bit compliance
Date: Wed, 29 Apr 1998 09:33:25 -0600 (MDT) [thread overview]
Message-ID: <199804291533.JAA18562@galileo.apo.nmsu.edu> (raw)
I have a question regarding GCC's compliance with the 64 bit Alpha
architecture. This came up in conjunction with compiling XPostitPlus,
which casts pointers to int, always a bad idea. I wrote a simple
program to check data type sizes. As expected:
char = 1 byte
short int = 2 bytes
int = 4 bytes
long int = 8 bytes
pointer = 8 bytes,
Checking further, I took a look in malloc.h, where size_t is defined,
on my Alpha and found
#define size_t unsigned int
shouldn't it be
#define size_t unsigned long int
on the Alpha???
I thought that the definition of "size_t" was supposed to be the same
size as a pointer (or memory address). Otherwise, functions that
manipulate memory and/or return pointers, e.g., malloc, won't take
advantage of the available address space.
Jon
---
Dr. Jon Brinkmann Apache Point Observatory
Instrument Scientist 2001 Apache Point Road
Internet: brinkmann@nmsu.edu P.O. Box 59
URL: http://www.apo.nmsu.edu/brinkmann/ Sunspot, NM 88349-0059
next reply other threads:[~1998-04-29 15:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-29 15:33 brinkmann [this message]
1998-04-29 14:36 ` GCC 64 bit compliance Stephen Williams
1998-04-29 17:09 ` Michal Jaegermann
1998-04-29 15:48 ` Stephen Williams
1998-04-29 16:22 ` Alexander V. Lukyanov
1998-04-29 16:27 ` Richard Hadsell
1998-04-29 16:45 ` Michal Jaegermann
1998-04-29 17:08 ` Dan Bethe
1998-04-29 17:34 ` Craig Burley
1998-04-29 17:53 ` Uncle George
-- strict thread matches above, loose matches on Subject: below --
1998-04-29 16:53 Alan Wood
1998-04-29 17:18 brinkmann
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox