字节

本页使用了标题或全文手工转换
维基百科,自由的百科全书
字节的次方单位
十进制前缀
(SI)
名字 符號 次方
千字节 kB 103
兆字节 MB 106
吉字节 GB 109
太字节 TB 1012
拍字节 PB 1015
艾字节 EB 1018
泽字节 ZB 1021
尧字节 YB 1024
容字节 RB 1027
昆字节 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

位元組(英語:byte)是通常用在電腦手機智能手表等设备上的信息计量单位,不分数据类型。[1][2] 。一個字节代表八個位元。从历史的观点上,“字节”表示用于编码单个字符所需要的比特数量,因此它是许多计算机体系结构中最小的可寻址内存单元。历史上字节长度曾基于硬件为1-48 bit不等,最初通常使用6 bit或9 bit为一字节。今日标准以8 bit作为一字节。为了消除常见8 位定义中任意大小的字节的歧义,八個位元在一些规范(例如工业标准、计算机网络电信技术等)中常被称为八位组(octet)。Internet 协议RFC 791 ) 将 8 位字节称为八位字节。[3]

国际电工委员会(IEC) 和电气与电子工程师协会(IEEE) 将字节的单位符号指定为大写字母 B。例如MB表示兆字节(megabyte);位元bit)可缩写成b,例如Mb表示兆比特( megabit英语megabit),与字节进行区分。 国际上,单位八位字节(octet,符号 o)明确定义了八位的序列,消除了术语“字节”的潜在歧义。  

字节的大小历来取决于硬件,并且不存在强制规定大小的明确标准。曾经使用过的字节的大小包含 1 到 48 位。六位字符代码是早期编码系统中常用的实现方式,使用六位和九位字节的计算机在 20 世纪 60 年代很常见。这些系统通常具有 12、18、24、30、36、48 或 60 位的存储器字,对应于 2、3、4、5、6、8 或 10 个六位字节。在术语“字节”变得普遍之前,指令流中的位分组通常被称为syllable[a]或slab 。

ISO/IEC 2382-1:1993 中记录的现代事实上的标准(8位)是相对方便的2 的幂,因为 2 的 8 次方是 256,允许一个字节使用 0 到 255的二进制编码值。 国际标准IEC 80000-13定义了这一常见含义。许多类型的应用程序使用可用八位或更少位表示的信息,并且处理器设计者通常针对这种用法进行优化。主要商业计算架构的普及有助于 8 位字节的普遍接受。现代架构通常使用 32 位字或 64 位字,分别由 4 个或 8 个字节构成。

历史[编辑]

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

注释[编辑]

  1. ^ 术语“syllable”用于包含指令或指令组成部分的字节,而不是数据字节。

參考資料[编辑]

  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 
  3. ^ Postel, J.. Internet Protocol DARPA INTERNET PROGRAM PROTOCOL SPECIFICATION. September 1981: p. 43 [28 August 2020]. RFC 791 (英文). octet An eight bit byte. 

延伸閱讀[编辑]

參閲[编辑]

外部連結[编辑]