Xref: utzoo comp.lang.c:8156 comp.arch:3927 Newsgroups: comp.lang.c,comp.arch Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Bit Addressable Architectures Message-ID: <1988Mar14.193330.488@utzoo.uucp> Organization: U of Toronto Zoology References: <11702@brl-adm.ARPA> <243@eagle_snax.UUCP> <2245@geac.UUCP> Date: Mon, 14 Mar 88 19:33:30 GMT > Backwards compatibility? With a C compiler insulating the user, the > only change is that sizeof(char) is now 8... Actually, even that incompatibility isn't necessary. A C compiler is perfectly free to decide that it still counts in bytes. (This may in fact be desirable, given that the hypothetical machine we are discussing does not have bit operations, just bit addressing.) The only situation in which the compiler can't completely hide what is going on is if pointers are converted to integers and examined, which is already an implementation- dependent area. Best news of all (heh, heh) is that on such a machine one would probably want to print pointers in octal, so that the bit offset was cleanly broken out in the low-order digit. Since octal is the way God meant programmers to count (the thumbs are parity bits) :-), this is clearly a Good Thing. -- Those who do not understand Unix are | Henry Spencer @ U of Toronto Zoology condemned to reinvent it, poorly. | {allegra,ihnp4,decvax,utai}!utzoo!henry