Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can the Size of the Byte greater than octet 8 bits

Tags:

c++

byte

I was going through http://www.parashift.com/c++-faq/index.html and there I found that byte can also be 64 bits http://www.parashift.com/c++-faq/very-large-bytes.html. Is it possible and what is the use of that much amount of storage capacity for a byte?

like image 919
blacktornado Avatar asked Jan 28 '26 04:01

blacktornado


1 Answers

The point isn't the usefulness of a big-byte "per se", but the fact that, for the standard, a byte is the smallest addressable quantity on the system1; if a system cannot address its memory in units smaller than 64 bits, then char will be 64 bit.

Obviously it's almost impossible to find such strange stuff on modern general-purpose computers, these weirdnesses come out on very specialized hardware (I heard DSPs are particularly prone to this kind of stuff), usually for performance reasons.

You can see more about this in this other FAQ.


  1. As far as is larger than 8 bits and is capable of holding a basic set of characters (alphanumeric characters plus some symbol, IIRC).
like image 172
Matteo Italia Avatar answered Jan 29 '26 18:01

Matteo Italia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!