From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: GCC 64 bit compliance
Date: Wed, 29 Apr 1998 11:09:12 -0600 (MDT) [thread overview]
Message-ID: <199804291709.LAA14851@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <199804291536.IAA01036@icarus.icarus.com> from "Stephen Williams" at Apr 29, 98 08:36:26 am
>
>
> 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
next prev parent reply other threads:[~1998-04-29 17:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-29 15:33 GCC 64 bit compliance brinkmann
1998-04-29 14:36 ` Stephen Williams
1998-04-29 17:09 ` Michal Jaegermann [this message]
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