On 15/10/11 11:06 PM, Toby Thain wrote:
On 15/10/11 9:17 PM, Dave McGuire wrote:
...How would you implement byte pointers on
a Cray 1 in some other language? ;)
This was indeed done in C compilers on word-addressed architectures,
such as DG Nova, which had a software convention for byte addressing.
The fact that C targeted word-addressed architectures likely leaves its
mark in certain liberalities of the standard.
I have a vague recollection that one of these is that sizeof(char) could
== sizeof(int).
--Toby
Chris Torek was fond of writing anecdotes about arcane C platforms -
google his Usenet posts.