From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 28026 invoked from network); 29 Apr 1998 16:45:13 -0000 Received: from ellpspace.math.ualberta.ca (michal@129.128.88.19) by mail2.redhat.com with SMTP; 29 Apr 1998 16:45:13 -0000 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.5/8.8.5) id KAA14789 for axp-list@redhat.com; Wed, 29 Apr 1998 10:45:16 -0600 From: Michal Jaegermann Message-Id: <199804291645.KAA14789@ellpspace.math.ualberta.ca> Subject: Re: GCC 64 bit compliance To: axp-list@redhat.com Date: Wed, 29 Apr 1998 10:45:15 -0600 (MDT) In-Reply-To: <199804291533.JAA18562@galileo.apo.nmsu.edu> from "brinkmann@nmsu.edu" at Apr 29, 98 09:33:25 am Content-Type: text > > 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??? Which version of libraries, headers, etc. you are using? And are you sure that you are looking at the right place? Headers are often included behind muli-story defines are macro-expansions and their text likely covers more than one platform. Doing a real check, which consists of running a program like that: #include int main(void) { printf("%ld\n", sizeof(size_t)); return 0; } I see a number 8 (glibc-2.0.7-7 and its headers on Alpha) but AFAIK it was always like that. Saying that - to assume in your programs some particular widths of types, beyond what C standard says about their relative widths, is a bad practice. It leads to numerous bugs which later haunt us on Alpha. Some programmer knew what these sizes were and now we have to "port" (translation - fix) this code for Alpha. Bugs are masked on a platform when assumptions about sizes happens to be true and the original code is passing for a correct one. Michal