Liste des Groupes | Revenir à cl c |
On Fri, 5 Jul 2024 14:31:44 +0100, bart wrote:C didn't define a 'byte' at all. It assumed 'char' addressability, but allowed that 'char' to be any width at all. I think at some point a minimum of 8 bits was applied.
C also is the only language that is supposed to work on any kind ofI don’t think there is anything innate in the design of C to ensure that.
processor ...
It was simply its popularity that meant it was usually the first language
implemented on a new processor.
For example, C assumes byte addressability.
So that causes awkwardness onWhich was also the first machine I used, and the first I wrote a compiler for.
architectures like the PDP-10, for example.
It just so happened suchThe next machine I wrote a compiler for was an 8-bit microprocessor, using twos complement, byte addressibility, some 16-bit capability, and 16-bit addressing.
architectures became extinct at about the time the rise of 8-bit
microprocessors (and their more advanced successors) made byte-
addressability essentially universal.
Les messages affichés proviennent d'usenet.