From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 10636 invoked from network); 29 Apr 1998 15:33:39 -0000 Received: from galileo.apo.nmsu.edu (192.41.211.40) by mail2.redhat.com with SMTP; 29 Apr 1998 15:33:39 -0000 Received: (from jb@localhost) by galileo.apo.nmsu.edu (8.8.8/8.8.6) id JAA18562; Wed, 29 Apr 1998 09:33:25 -0600 (MDT) Date: Wed, 29 Apr 1998 09:33:25 -0600 (MDT) Message-Id: <199804291533.JAA18562@galileo.apo.nmsu.edu> To: axp-list@redhat.com Subject: GCC 64 bit compliance From: brinkmann@nmsu.edu 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