473,320 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

why 8 bits are 1 byte?

1
[b]why 8 bits(not 9 ,etc) are 1 byte?
Nov 29 '06 #1
3 28716
r035198x
13,262 8TB
[b]why 8 bits(not 9 ,etc) are 1 byte?
http://www.romulus2.com/articles/gui...itsbytes.shtml
Nov 29 '06 #2
DeMan
1,806 1GB
The main reason why bits are grouped together is to represent characters. Because of the binary nature of all thinks computing, ideal 'clumps' of bits come in powers of 2 ie 1,2,4,8,16,32...... (basically because they can always be divided into smaller equal packages {it also creates shortcuts for storing size, but that's another story}). Obviously 4 bits {nybble in some circles} can give us 2^4 or 16 unique characters. As most alphabets are larger than this, 2^8 (or 256 characters) is a more suitable choice.
Originally (until the mid 1950's) the term byte was used for a string of bits (of any length - usually 1 transmission - that is 1 (command) sequence or similar). The origin of the word is unclear but is thought to come from around the same time when Werner Bucholz (or similar) used the word bite (derived from, but distinct to bit) to describe a bitstring that could encode a character to be transmitted between peripherals. To avoid spelling problems this eventually became byte (hence nybble for half-byte).
I have also seen references to BYTE being an acronym, most commonly Binary Yoked Transfer Element (see acronymfinder.com). There is a vague mention on Dictionary.com of another possible origin from an IBM acronym but I suspect that bite may have changed to byte for a little bit of both reasons.
Machines exist that have used other length bytes (particularly 7 or 9). This have not really survived merely because they are not as easy to manipulate. You certainly can't split an odd number in half, which means if you were to divide bytes, you would have to keep track of the length of the bitstring.
Finally, 8 is also a convenient number, many people (psychologists and the like) claim that the human mind can generally recall only 7-8 things immediately (without playing memory tricks).

I think I'm getting off track now.....
Nov 29 '06 #3
Banfa
9,065 Expert Mod 8TB
[b]why 8 bits(not 9 ,etc) are 1 byte?
It isn't always 8 sometimes it is 7 or 9. This is platform dependent.

In the file limits.h a symbol CHAR_BIT is defined that is the number of bits in a byte for the platform.
Nov 29 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Ken | last post by:
I need to convert 32 bit Windows bitmaps to jpgs with PHP. I used the function from http://groups.google.com/groups? hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&selm=a164f4b5.0311302128.40fb37f4%...
11
by: Peter | last post by:
Hi how can I compare two byte arrays in VB.NET Thank Peter
3
by: Vince | last post by:
I would like to know how I can extract some data from a byte array. For example let's say I have a byte array with 4 elements ie 32 bits. BYTE buf; I fill buf with the following values :...
10
by: Kristian Nybo | last post by:
Hi, I'm writing a simple image file exporter as part of a school project. To implement my image format of choice I need to work with big-endian bytes, where 'byte' of course means '8 bits', not...
16
by: Samuel Thomas | last post by:
Hello Friends, I understand(could be wrong) that the smallest chunk of memory is called a word. If that is correct, that means if I am using a 32 bit OS a word is 4 bytes. So that's why the size...
11
by: Steve | last post by:
Hi, i know this is an old question (sorry) but its a different problem, i need to write a binary file as follows 00000011 00000000 00000000 00000101 00000000 11111111
4
by: Lance | last post by:
I have an array of bytes that I need to convert into an array of Integers. But, the number of bits per value in the Byte array is not necessarily divisible by 8 (although it will never exceed...
33
by: Benjamin M. Stocks | last post by:
Hello all, I've heard differing opinions on this and would like a definitive answer on this once and for all. If I have an array of 4 1-byte values where index 0 is the least signficant byte of a...
96
by: david ullua | last post by:
I am reading "Joel on Software" these days, and am in stuck with the question of "how to calculate bitsize of a byte" which is listed as one of the basic interview questions in Joel's book. Anyone...
5
by: Oyvind Eriksen | last post by:
Hello. I need to read bits from bytes in a file. I have code that works but it's very slow. Can anybody help me? The code I have is: private bool GetBit(byte b, int pos) { return ((b &...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.