POV-Ray : Newsgroups : povray.off-topic : For Warp : Re: For Warp Server Time
5 Sep 2024 21:25:41 EDT (-0400)
  Re: For Warp  
From: Darren New
Date: 28 Jun 2009 14:10:07
Message: <4a47b1ff$1@news.povray.org>
Warp wrote:
>   I suppose that if there exists a system with bytes smaller than 8 bits,
> a C compiler for that system would slightly break the standard by necessity

Nah. You just wouldn't be able to address the smaller units. If you has 
6-bit memory units, you'd have pointers to characters that increment by two 
machine addresses on each ++, and you'd have 12 bits per char.

Altho, in truth, I expect they'd just break compatibility, rather than 
actually follow the standard yet generate surprising machine code.

The real killer for such a system is the number of people who *do* assume 
8-bit bytes. What happens when you have 10-bit characters and you call
   write(14, "Zoop", 4)
and handle 14 is a TCP socket?

-- 
   Darren New, San Diego CA, USA (PST)
   Insanity is a small city on the western
   border of the State of Mind.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.