Mail Archives: djgpp/2000/01/22/06:13:40
Ummm, I guess when you say 8 bytes you mean 8 bits. And this wouldn't
break the standard because a char is only typically defined as 8 bits.
I was wondering if the compiler had anything to do with the size of a
char. If the DJGPP team was thinking of, or even forsees the
possiblity, of changing the length of the char from 8-bits to more, I
was wanting to know.
Is this a compiler issue, or is this a machine architecture issue? Does
the size of the char depend on the word-size of a computer, or how does
this work? Could someone please let me know. Thanks for your time.
-David C.
Wilmer van der Gaast wrote:
>
> On Fri, 21 Jan 2000 17:36:27 -0600, David Cleaver wrote:
> > I was wondering if there were any plans on changing the number of bits
> > in char from 8 to 16 or something like that? Not that I want this.
> > It's just that in limits.h its explicitly defined as 8 bits and I was
> > thinking that someone might change this in the future.
>
> It would not make any sense to change the char type into 16 bits, since
> one character occupies 8 bytes. Changing this is breaking the standard,
> well except for (shudder...) Unicode... :(
>
> --
>
> Wilmer van der Gaast (lintux AT dds DOT nl)
> ICQ 55707076
>
> Hi, I'm a signature virus. plz set me as your signature and help me
> spread :)
- Raw text -