Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: Likelihood ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 7 Topic 9588 of 9831
Post > Topic >>

Re: Likelihood That (CHAR_BIT == 8).

by Bart van Ingen Schenau <bart@[EMAIL PROTECTED] > May 10, 2008 at 02:13 PM

Le Chaud Lapin wrote:

> Hi All,
> 
> I would like to know of existing systems where CHAR_BIT of <climits>
> is not equal to 8. I am particular interested in prevalent systems.

I am currently developing software for the BlueCore-5 chip (a Bluetooth
chip from Cambridge Silicon Radio, www.csr.com) which has CHAR_BIT ==
16.

> 
> Technically, my code is mostly ****table, but only within a particular
> machine. Innter-machine interaction (serialization for example), there
> will be problems for those machines where CHAR_BIT != 8.

The communication might not be a problem for the BlueCore chip. It often
uses octet-oriented communication mechanisms (UART and I2C) and handles
the conversion between byte and octet internally.
Other processors that often interface over octet-oriented mechanisms
might do the same.

> 
> Yes, yes, I know, it enough effort, I can rewrite my code to eliminate
> any potential compatibilities even then, but still, it helps to
> know. :)
> 
> TIA,
> 
> -Le Chaud Lapin-
> 
Bart v Ingen Schenau
-- 
a.c.l.l.c-c++ FAQ: http://www.comeaucomputing.com/learn/faq
c.l.c FAQ: http://c-faq.com/
c.l.c++ FAQ: http://www.para****ft.com/c++-faq-lite/

      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 7 Posts in Topic:
Likelihood That (CHAR_BIT == 8).
Le Chaud Lapin <jaibud  2008-05-09 21:23:59 
Re: Likelihood That (CHAR_BIT == 8).
peter koch larsen <pet  2008-05-10 05:54:27 
Re: Likelihood That (CHAR_BIT == 8).
Pavel Minaev <int19h@[  2008-05-10 05:52:39 
Re: Likelihood That (CHAR_BIT == 8).
John Nagle <nagle@[EMA  2008-05-10 06:14:38 
Re: Likelihood That (CHAR_BIT == 8).
Thomas Richter <thor@[  2008-05-10 14:06:02 
Re: Likelihood That (CHAR_BIT == 8).
Bart van Ingen Schenau &l  2008-05-10 14:13:28 
Re: Likelihood That (CHAR_BIT == 8).
Alan McKenney <alan_mc  2008-05-11 09:48:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 21:54:15 CDT 2008.