5 ms·
A byte is the smallest addressable unit on a given architecture. Depending on the hardware that byte can be 8, 12, 24, 32, or 64 bits (in my own experience ove
by defrost 4y ago
A byte is the smallest addressable unit on a given architecture.
Depending on the hardware that byte can be 8, 12, 24, 32, or 64 bits (in my own experience over the years).
It's sad so many here are claiming that there are always and only 8 bits to a byte.
I've already replied to one person who quoted an ISO standard, that they clearly had not read, in support of this misconception.
- anthony_d 4y ago> A byte is the smallest addressable unit on a given architecture. That’s normally called a word. I’ve seen casual usage of “byte” in that context but formal documentation has always used word.
- Kim_Bruning 4y agoI've also seen "word" used more often. Though maybe some older literature does use "byte" sometimes?
- kcartlidge 4y agoWords and Bytes are different things. As are (genuinely) Nibbles and Chunks.
- defrost 4y agoThere's historically been sloppy overlap between "byte" and "word", even today formal documentation doesn't clarify a difference. This stems from architectures that had both a both a minimal and maximal addressable "atomic chunk" via segmented architecture. Conversations about this varied between Intel, Motorola, TI chipset users, PDP v Cyber programmers, etc. From a Standard C Programming (as portable assembly) viewpoint Char and Byte are interchangable and are the smallest atomic type .. with the number of bits defined by a header constant. [1] https://www.iso.org/obp/ui/#iso:std:iso-iec:2382:ed-1:v1:en https://www.iso.org/obp/ui/#iso:std:iso-iec:2382:ed-1:v1:en
- LinAGKar 4y agoNo, a word is data size they work with as a unit. Modern 64-bit computers have 64-bit words, but they're still 8-bit addressable, so they have 8-bit bytes.
- spigottoday 4y agoIt's my understanding that the word byte is a contraction of the two words:by eight. Also (fun fact) a half a byte, 4 bits, is called a nibble. May be I'm out of touch but I have never seen a word referred to as a byte outside of an 8 bit processor, words are composed of bytes.
- JohnFen 4y agoI've always spelled it "nybble". But I've seen "byte" used to refer to other numbers of bits lots of times, although primarily in the old days. Not so much anymore. I think the meaning has changed with time and has become fixed on "8 bits", but it was not always so.
- int_19h 4y agoIn elder days, there were many systems with 6-bit and 7-bit bytes. It took a while to standardize on 8 bits. So no, it's not a contraction of "by eight". It's just a different spelling for "bite", as a pun on "a bite of bits".
- LinAGKar 4y agoIn theory bytes can be a different size, and 8 bits is an octet. But any modern computer, at least those most people will ever come into contact with or hear of, have 8-bit bytes. So while 8 bits = 1 byte should be common knowledge, knowing about other byte sizes is esoteric knowledge. What systems are there with such large bytes?
- defrost 4y agoThe Texas Instrument TMS DSP family from 1980 through until today all have large bytes and lack octet addressing (and bit masking and such). They are fiends for pipelined throughput and have low level ASM statements that modular index through vector calculations per clock cycle (increment pointers, multiply and add arguments, store results, etc) but are built for the float | double numerical domain grunt work with no ground given for bithack twiddling. There are other examples but that should suffice.
- rpdillon 4y agoThis is surprising to me. We measure bandwidth in bytes per second, and I'm not aware of that measurement being qualified by architecture. Are talking about the same "byte"?
- drKarl 4y agoAu contraire, mon ami... We measure bandwidth in bits per second, we say 100 Mbps or 1 Gbps, if you want to know the bytes per second you have to divide by 8, to know MBps or GBps
- Hizonner 4y agoI have known what a byte was for, um, let's see, about 46 years now. In the days when I learned what it was, it was fairly common for machines to have addressable units larger than a byte. We said that these machines "did not address to the byte". That is literally something you would say. Because a BYTE WAS NOT THE SAME THING AS AN ADDRESSABLE UNIT. A word isn't the same thing as an addressable unit, either; your machine's word size is the number of bits it transfers over its main bus at one time and/or the number of bits it can work on in one operation. Which is maybe a bit fuzzy nowadays. If I recall correctly, I read somewhere, back in the 1970s, that the word "byte" was originally used to mean the size of a text character. But in any common usage, even by the time I learned about it, it had settled down to just meaning 8 bits, period.
- SAI_Peregrinus 4y agoYou're confusing a byte (8 bits) with a C `char` (the smallest addressable unit of memory that's at least 8 bits). Usually the smallest addressable unit regardless of size is a "word", some early machines had 6-bit words.
- int_19h 4y agoA unit that is consistently 8 bits is properly an "octet", as found in many RFCs. Bytes can and do (or rather did) have any number of bits in them.