| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: [C] word sizes |
Hi Bob. 16-Nov-03 19:21:48, Bob Stout wrote to All BS> From: Bob Stout BS> On Sun, 16 Nov 2003, Jerry Coffin wrote: BS> Guilty as charged. In my own defense, though, I've never heard of BS> a compiler where char wasn't 8 bits. GCC/Sparc used/uses 32 bits I think as AIUI that's the smallest addressible amount of memory on that architecture >> There is one proviso to that: though never says so explicitly, for >> I/O to work correctly (specifically for EOF to be unique from any >> input that could have been read from the file) the range of int has >> to be greater than (not equal to) the range for char. IOW, if >> there are 64 bits in the value representation of a char, then there >> had better be at least 65 bits in an int, or the I/O model no >> longer works. BS> Excellent point - but, as you point out, not explicitly stated nor BS> immediately obvious nor does it reflect my experience with systems where stdlib has char signed. -=> Bye <=- ---* Origin: As King Arthur said: Some days it all seems so feudal. (3:640/1042) SEEN-BY: 633/267 270 @PATH: 640/1042 531 954 774/605 123/500 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™.