473,417 Members | 1,530 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,417 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 28730
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.