可以使字节的大小大于8位字节 [英] Can the Size of the Byte greater than octet 8 bits

查看:218
本文介绍了可以使字节的大小大于8位字节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在浏览 http://www.parashift.com/c++-faq/ index.html ,我发现字节也可以是64位 http://www.parashift.com/c++-faq/very-large-bytes.html 。是否可能,一个字节使用那么多的存储容量?

I was going through http://www.parashift.com/c++-faq/index.html and there I found that byte can also be 64 bits http://www.parashift.com/c++-faq/very-large-bytes.html. Is it possible and what is the use of that much amount of storage capacity for a byte?

推荐答案

大字节本身的有用性,但是对于标准,字节是系统 1 上的最小可寻址数量;如果系统不能以小于64位的单位寻址其内存,则 char 将为64位。

The point isn't the usefulness of a big-byte "per se", but the fact that, for the standard, a byte is the smallest addressable quantity on the system1; if a system cannot address its memory in units smaller than 64 bits, then char will be 64 bit.

在现代通用计算机上几乎不可能找到这样的奇怪的东西,这些怪异出现在非常专业的硬件上(我听说DSP特别容易出现这种东西),通常出于性能原因。

Obviously it's almost impossible to find such strange stuff on modern general-purpose computers, these weirdnesses come out on very specialized hardware (I heard DSPs are particularly prone to this kind of stuff), usually for performance reasons.

您可以在此其他常见问题中查看更多相关资讯。

You can see more about this in this other FAQ.


  1. 只要大于8位并且能够保存一组基本字符字母数字字符加上一些符号,IIRC)。

这篇关于可以使字节的大小大于8位字节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆