▲ | kazinator 6 days ago | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Problem is, not only did we have decades of C code that unnecessarily assumed 8/16/32, this all-the-world-is-a-VAX view is now baked into newer languages. C is good for portability to this kind of machine. You can have a 36 bit int (for instance), CHAR_BIT is defined as 9 and so on. With a little bit of extra reasoning, you can make the code fit different machines sizes so that you use all the available bits. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | 0cf8612b2e1e 6 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Now a C++ proposal to define a byte as 8 bits | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | pratyahava 6 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
was that assumption in C code really unnecessary? i suppose it made many things much easier. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|