Mail Archives: djgpp/2000/08/27/13:48:01
Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comremovebullcr_p> wrote:
> On Sat, 26 Aug 2000 18:46:52 -0400, DJ Delorie <dj AT delorie DOT com> wrote:
>>I've seen machines where char, short, and long are all 32 bits.
> If char is 32 bits, then text files and HTML files must be _huge_ on
> those machines ;-)
Not necessarily. You can make use of the freedom given to the
implementor of an ANSI/ISO standard C compiler to store each char of a
file opened in text mode as 8 bits, expanding to 32 bits transparently
inside the <stdio.h> functions. Just because a char is 32 bits inside
a C program doesn't mean it has to be 32 bits on disk, too.
OTOH, the typical everything-is-32bits-wide hardware of these days is
found in embedded systems, which hardly, if ever have such 'highlevel'
features as a file system :-)
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -