久久久久久久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 仍然相關嗎?)
主站蜘蛛池模板: 人与拘一级a毛片 | 免费观看a级片 | 秋霞午夜鲁丝一区二区老狼 | 日韩欧美精品 | 日韩网站免费观看 | 神马午夜嘿嘿 | аⅴ资源新版在线天堂 | 99在线免费观看 | 红桃视频成人 | 双性呜呜宫交受不住了h | 亚洲 欧美 激情 另类 校园 | 国产主播99 | 色婷婷免费视频 | 亚洲欧美综合网 | 一区在线观看视频 | 亚洲精品久久久 | 欧美成在线 | 96精品| 国产一级黄 | 亚洲欧美日韩国产精品 | 成人网在线观看 | 成人av播放 | 在线中文字幕网站 | 在线亚洲一区 | 人人爱人人澡 | 婷婷视频在线 | 99久久久国产精品 | 国产精品一区一区三区 | 亚洲在线免费视频 | 久久久国产精品视频 | 在线观看日本 | 欧美日韩免费 | 97caoporn | 久久精品一区二区三区不卡牛牛 | 九九热精品在线观看 | 草草视频在线 | 玖玖色资源 | 不卡的av| 久久夜视频 | 国产精品成人一区二区 | 久久久久久黄色 |