Sujet : Re: technology discussion → does the world need a "new" C ?
De : ben (at) *nospam* bsb.me.uk (Ben Bacarisse)
Groupes : comp.lang.cDate : 06. Jul 2024, 23:24:17
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <871q46upke.fsf@bsb.me.uk>
References : 1 2 3 4 5 6 7
User-Agent : Gnus/5.13 (Gnus v5.13)
Lawrence D'Oliveiro <
ldo@nz.invalid> writes:
On Fri, 05 Jul 2024 19:00:58 -0700, Keith Thompson wrote:
>
C assumes byte addressibility, but it doesn't assume that bytes are 8
bits.
The PDP-10 had 36-bit words and could operate on bit fields of any size
from 1 to 36 bits.
>
But it couldn’t address them.
And C does not assume that the hardware can address bytes. On word
addressed machines, some pointer conversions generate code.
-- Ben.