Click here to Skip to main content
16,013,465 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Character set Pin
Richard MacCutchan15-Sep-24 2:58
mveRichard MacCutchan15-Sep-24 2:58 
GeneralRe: Character set Pin
trønderen15-Sep-24 12:19
trønderen15-Sep-24 12:19 
GeneralRe: Character set Pin
Mircea Neacsu17-Sep-24 13:49
Mircea Neacsu17-Sep-24 13:49 
GeneralRe: Character set Pin
jschell17-Sep-24 12:22
jschell17-Sep-24 12:22 
GeneralRe: Character set Pin
CPallini13-Sep-24 0:06
mveCPallini13-Sep-24 0:06 
GeneralRe: Character set Pin
Calin Negru13-Sep-24 1:32
Calin Negru13-Sep-24 1:32 
GeneralRe: Character set Pin
CPallini13-Sep-24 1:34
mveCPallini13-Sep-24 1:34 
GeneralRe: Character set Pin
trønderen14-Sep-24 6:48
trønderen14-Sep-24 6:48 
Did *nix, or C under any other OS, ever run on a machine with a non-binary word size, like 12, 18 or 36 bits? Such as DEC-10 / DEC-20 or Univac 1100 series. I never heard of any, but I'd expect that it was done. Univac could either operate with 6 bit FIELDATA bytes or 9 bit bytes. DEC put five 7 bit bytes into each word, with one bit to spare.

If C was run on such machines, how was char handled? Enforcing 8 bits, making the strings incompatible with other programming languages? Or did C surrender to 6 or 7 bit bytes? If they stuck to 8 bits, did each word on a 36 bit machine have 4 bits to spare? (2 bits on an 18 bit machine) Or did they fit 4.5 char a word - 9 char per two words? (On Univac, you could address 6 or 9 bit bytes semi-directly, using string instructions, without the need for shifting and masking.)

By old definition, both architectures had a char size of one byte. The old understanding of 'byte' was the space required to store a single character; it could vary from 5 bits (Baudot code) to at least 9 (Univac and others) bits. Lots of international standards (developed outside of internet environments!) use the term 'octet' for 8 bits to avoid confusion with non-binary word/byte sizes.
Religious freedom is the freedom to say that two plus two make five.

GeneralRe: Character set Pin
Calin Negru14-Sep-24 9:18
Calin Negru14-Sep-24 9:18 
GeneralRe: Character set Pin
k505414-Sep-24 10:15
mvek505414-Sep-24 10:15 
GeneralRe: Character set Pin
markkuk14-Sep-24 11:15
markkuk14-Sep-24 11:15 
QuestionREMOVED Pin
jana_hus7-Sep-24 7:12
jana_hus7-Sep-24 7:12 
AnswerRe: Addendum how to build real time events in Qt? Pin
Richard MacCutchan7-Sep-24 21:29
mveRichard MacCutchan7-Sep-24 21:29 
QuestionLooking for opinions on currency handling.... Pin
Jeremy Falcon2-Sep-24 8:20
professionalJeremy Falcon2-Sep-24 8:20 
GeneralRe: Looking for opinions on currency handling.... Pin
k50542-Sep-24 11:16
mvek50542-Sep-24 11:16 
GeneralRe: Looking for opinions on currency handling.... Pin
Jeremy Falcon2-Sep-24 11:35
professionalJeremy Falcon2-Sep-24 11:35 
GeneralRe: Looking for opinions on currency handling.... Pin
Richard Andrew x642-Sep-24 13:49
professionalRichard Andrew x642-Sep-24 13:49 
GeneralRe: Looking for opinions on currency handling.... Pin
Jeremy Falcon2-Sep-24 13:56
professionalJeremy Falcon2-Sep-24 13:56 
GeneralRe: Looking for opinions on currency handling.... Pin
Richard Andrew x642-Sep-24 14:26
professionalRichard Andrew x642-Sep-24 14:26 
GeneralRe: Looking for opinions on currency handling.... Pin
Jeremy Falcon2-Sep-24 15:33
professionalJeremy Falcon2-Sep-24 15:33 
AnswerRe: Looking for opinions on currency handling.... Pin
CPallini2-Sep-24 20:05
mveCPallini2-Sep-24 20:05 
GeneralRe: Looking for opinions on currency handling.... Pin
Jeremy Falcon3-Sep-24 2:48
professionalJeremy Falcon3-Sep-24 2:48 
GeneralRe: Looking for opinions on currency handling.... Pin
CPallini3-Sep-24 3:07
mveCPallini3-Sep-24 3:07 
GeneralRe: Looking for opinions on currency handling.... Pin
Jeremy Falcon3-Sep-24 3:23
professionalJeremy Falcon3-Sep-24 3:23 
GeneralRe: Looking for opinions on currency handling.... Pin
Mircea Neacsu3-Sep-24 15:45
Mircea Neacsu3-Sep-24 15:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.