Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Stephen Williams <steve@icarus.icarus.com>
To: axp-list@redhat.com
Subject: Re: GCC 64 bit compliance
Date: Wed, 29 Apr 1998 09:48:17 -0600	[thread overview]
Message-ID: <199804291648.JAA01340@icarus.icarus.com> (raw)
In-Reply-To: Your message of "Wed, 29 Apr 1998 11:09:12 MDT." <199804291709.LAA14851@ellpspace.math.ualberta.ca>

> 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.

michal@ellpspace.math.ualberta.ca said:
> 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.

True enough. I never said that having a narrow size_t was a good idea,
just that it is legal (though kinda silly) to be smaller then a pointer.
Hell, there are people running 16bit Windows code on Pentiums:-)
-- 
Steve Williams                "The woods are lovely, dark and deep.
steve@icarus.com              But I have promises to keep,
steve@picturel.com            and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."



  reply	other threads:[~1998-04-29 17:48 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
1998-04-29 15:48     ` Stephen Williams [this message]
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