From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 22661 invoked from network); 29 Apr 1998 17:09:14 -0000 Received: from ellpspace.math.ualberta.ca (michal@129.128.88.19) by mail2.redhat.com with SMTP; 29 Apr 1998 17:09:14 -0000 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.5/8.8.5) id LAA14851 for axp-list@redhat.com; Wed, 29 Apr 1998 11:09:13 -0600 From: Michal Jaegermann Message-Id: <199804291709.LAA14851@ellpspace.math.ualberta.ca> Subject: Re: GCC 64 bit compliance To: axp-list@redhat.com Date: Wed, 29 Apr 1998 11:09:12 -0600 (MDT) In-Reply-To: <199804291536.IAA01036@icarus.icarus.com> from "Stephen Williams" at Apr 29, 98 08:36:26 am Content-Type: text > > > brinkmann@nmsu.edu said: > > I thought that the definition of "size_t" was supposed to be the same > > size as a pointer (or memory address). > > Minor nit: > > The definition of size_t is the type that sizeof returns, and is an > unsigned integral type. There is no mention if the pointer size in the > definition of size_t in the C standard that I have in front of me. That is correct. But C standard also says that size_t is a return type of a sizeof operator and about the later C standard says, among other things, "When applied to an operand that has array type, the result is the total number of bytes in the array". In other words, if you compiler allows for arrays indexed by an 'unsigned long int' then size_t cannot be too narrow. Or, if you prefer, a width of size_t sets an upper limit on a size of any structure, union or array which your compiler is able to accept. Michal