字节

字节(英语:byte),通常用作电脑手机手表等 信息计量单位,不分数据类型。[1][2] 是通信和数据存储的概念。一个字节代表八个比特。从历史的观点上,“字节”表示用于编码单个字符所需要的比特数量。历史上字节长度曾基于硬件为1-48 bit不等,最初通常使用6 bit或9 bit为一字节。今日标准以8 bit作为一字节,因8为二进制整数。八个比特在一些规范(例如工业标准、计算机网络电信技术等)中常被称为八位组。字节(byte)可缩写成B,例如MB表示megabyte比特bit)可缩写成b,例如Mb表示megabit英语megabit

字节的次方单位
十进制前缀
(SI)
名字 缩写 次方
千字节 kB 103
兆字节 MB 106
吉字节 GB 109
太字节 TB 1012
拍字节 PB 1015
艾字节 EB 1018
泽字节 ZB 1021
尧字节 YB 1024
ronnabyte RB 1027
quettabyte QB 1030
二进制前缀
(IEC 60027-2)
名字 缩写 次方
kibibyte KiB 210
mebibyte MiB 220
gibibyte GiB 230
tebibyte TiB 240
pebibyte PiB 250
exbibyte EiB 260
zebibyte ZiB 270
yobibyte YiB 280

历史

字节一词是Werner Buchholz于1956年6月在IBM Stretch计算机的早期设计阶段发明的,该计算机的寻址为位和可变字段长度(VFL)指令,指令中编码了字节大小。这是为了避免意外突变为比特而特意重写的。

参考资料

  1. ^ Blaauw, Gerrit Anne; Brooks, Jr., Frederick Phillips; Buchholz, Werner, 4: Natural Data Units, Buchholz, Werner (编), Planning a Computer System – Project Stretch (PDF), McGraw-Hill Book Company, Inc. / The Maple Press Company, York, PA.: 39–40, 1962 [2017-04-03], LCCN 61-10466, (原始内容 (PDF)存档于2017-04-03), […] Terms used here to describe the structure imposed by the machine design, in addition to bit, are listed below.
    Byte denotes a group of bits used to encode a character, or the number of bits transmitted in parallel to and from input-output units. A term other than character is used here because a given character may be represented in different applications by more than one code, and different codes may use different numbers of bits (i.e., different byte sizes). In input-output transmission the grouping of bits may be completely arbitrary and have no relation to actual characters. (The term is coined from bite, but respelled to avoid accidental mutation to bit.)
    A word consists of the number of data bits transmitted in parallel from or to memory in one memory cycle. Word size is thus defined as a structural property of the memory. (The term catena was coined for this purpose by the designers of the Bull fr computer.)
    Block refers to the number of words transmitted to or from an input-output unit in response to a single input-output instruction. Block size is a structural property of an input-output unit; it may have been fixed by the design or left to be varied by the program. […]
     
  2. ^ Bemer, Robert William, A proposal for a generalized card code of 256 characters, Communications of the ACM, 1959, 2 (9): 19–23, doi:10.1145/368424.368435 

延伸阅读

参阅

  • 八字节octet

外部链接