久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

1 字節!= 8 位的系統?

System where 1 byte != 8 bit?(1 字節!= 8 位的系統?)
本文介紹了1 字節!= 8 位的系統?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我一直在讀這樣的句子

不要依賴 1 個字節的大小為 8 位

don't rely on 1 byte being 8 bit in size

使用 CHAR_BIT 而不是 8 作為常量在位和字節之間轉換

use CHAR_BIT instead of 8 as a constant to convert between bits and bytes

等等.今天有哪些現實生活系統,這適用于哪些地方?(我不確定 C 和 C++ 在這方面是否存在差異,或者它是否實際上與語言無關.如有必要,請重新標記.)

et cetera. What real life systems are there today, where this holds true? (I'm not sure if there are differences between C and C++ regarding this, or if it's actually language agnostic. Please retag if neccessary.)

推薦答案

在較舊的機器上,小于 8 位的代碼相當普遍,但其中大部分已經消失多年了.

On older machines, codes smaller than 8 bits were fairly common, but most of those have been dead and gone for years now.

C 和 C++ 已經規定 char最少為 8 位,至少可以追溯到 C89 標準..他們將char"和byte"視為本質上是同義詞

C and C++ have mandated a minimum of 8 bits for char, at least as far back as the C89 standard. . They treat "char" and "byte" as essentially synonymous

然而,當前的機器(主要是 DSP)的最小類型大于 8 位——至少 12、14 甚至 16 位是相當常見的.Windows CE 的做法大致相同:它的最小類型(至少對于 Microsoft 的編譯器)是 16 位.然而,他們char 視為 16 位 - 相反,他們采用(不符合)的方法,簡單地不支持名為 char<的類型/code> .

There are, however, current machines (mostly DSPs) where the smallest type is larger than 8 bits -- a minimum of 12, 14, or even 16 bits is fairly common. Windows CE does roughly the same: its smallest type (at least with Microsoft's compiler) is 16 bits. They do not, however, treat a char as 16 bits -- instead they take the (non-conforming) approach of simply not supporting a type named char at all.

這篇關于1 字節!= 8 位的系統?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Algorithm to convert RGB to HSV and HSV to RGB in range 0-255 for both(將 RGB 轉換為 HSV 并將 HSV 轉換為 RGB 的算法,范圍為 0-255)
How to convert an enum type variable to a string?(如何將枚舉類型變量轉換為字符串?)
When to use inline function and when not to use it?(什么時候使用內聯函數,什么時候不使用?)
Examples of good gotos in C or C++(C 或 C++ 中好的 goto 示例)
Significance of ios_base::sync_with_stdio(false); cin.tie(NULL);(ios_base::sync_with_stdio(false) 的意義;cin.tie(NULL);)
Is TCHAR still relevant?(TCHAR 仍然相關嗎?)
主站蜘蛛池模板: 日韩成人影院 | 中文字幕在线观看精品 | 欧美乱淫视频 | 国产精品久久久久久影视 | 在线观看av免费 | 伊大人久久 | 久久久精彩视频 | 天堂一区二区三区 | 观看av | 日本免费视频在线观看 | 日韩精品视频在线播放 | 欧美啪啪网站 | 草久在线视频 | 天天综合91| 在线国产一区 | 中文字幕在线人 | 国产黄色av网站 | 黄色成人免费在线观看 | 国产精品久久久久久妇女6080 | 精品久久久久久久久久久久久久久久久 | 国产欧美一区二区三区日本久久久 | 午夜在线免费观看 | 午夜小视频免费观看 | 日本免费一区二区三区四区 | 欧美日韩亚洲国产 | 电影午夜精品一区二区三区 | 毛片区| 做a的各种视频 | 黄色电影在线免费观看 | 欧美电影在线观看网站 | 亚洲网站在线观看 | 亚洲精品久久久一区二区三区 | 天天色av| 好好的日在线视频 | 日本电影网站 | 欧美激情精品久久久久 | 国产亚洲一区二区三区 | 色综合天天综合网国产成人网 | 麻豆一区 | 亚洲精品视频免费 | 国产欧美综合在线 |