TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Jerry Coffin
from: Pascal Schmidt
date: 2004-01-21 02:12:48
subject: Re: [C] (Thanks)An interesting question

Hi Jerry! :-)

 JC> There are compilers, especially on DSPs, where char is 16 bits.  The 
 JC> reason is pretty simple: some DSPs aren't really built to deal with 
 JC> anything smaller than that.
I stand corrected, at least on the "bigger than 8 bits" count. ;)

 JC> The sizes of nearly all types are open to variation.  You probably 
 JC> see int vary the most, but but char int and long all vary quite 
 JC> routinely.  For whatever reason, the most dependable one is probably 
 JC> short being 16 bits.
Matches with my experience, yes.

 JC> In C99, they've added a number of new typedefs for int16_t, int32_t, 
 JC> and so on.
Yep, in .

Ciao
Pascal

--- Msged/LNX 6.1.1
* Origin: NFSv3 server - http://unfs3.sourceforge.net/ (1:153/401.2)
SEEN-BY: 633/267 270
@PATH: 153/401 307 140/1 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.