当前位置:网站首页>Storage model: big end and small end
Storage model: big end and small end
2022-07-28 12:59:00 【Private dishes】
Preface :
The information stored in the computer operating system is in bytes , Each address unit corresponds to 1 Bytes .
1 Bytes to 8 bits, For certain 32 For bit processors ,char Type data occupation 1 Bytes of space ,short Occupy 2 Bytes ,int Occupy 4 Bytes . And the storage order of these bytes in memory , And the arrangement of byte memory , It's all people's urgent concern . When the first byte appears , The second byte needs to determine its location and significance .
for example ,Internet agreement , for example RFC 791;
Another example is , File format , for example GIF、JPEG、MPEG wait .
And these bytes are in order one by one , Call it byte order (endianness). From left to right 、 From right to left , Byte order is divided into two :
- Big endian byte order ;
- Small endian byte order ;
Detailed instructions :
For a number x The value of is 0x2211, among 0x22 For high byte ,0x11 Is low byte .
For big end models , In the file 、 When the protocol is transmitted , In the order of reading , First, 0x22, Next is 0x11.
For the small end model , On the contrary , Will 0x22 Will then 0x11 after .
And in the computer , The big end model saves the high bytes of data in the low address of memory , The low byte of data is stored in the high address of memory . The small end model is the opposite .
For example, for numbers 0x1234567

When the computer processes byte order &#x
边栏推荐
- Unity loads GLB model
- Fundamentals of machine learning - principal component analysis pca-16
- Multiple items on a computer share a public-private key pair to pull the Gerrit server code
- Initialization examples of several modes of mma8452q
- Machine learning practice - integrated learning-23
- A brief introduction to the for loop. Some of the code involves arrays
- DART 三维辐射传输模型申请及下载
- 合并表格行---三层for循环遍历数据
- Uniapp 应用开机自启插件 Ba-Autoboot
- Brother bird talks about cloud native security best practices
猜你喜欢

非标自动化设备企业如何借助ERP系统,做好产品质量管理?

机器学习实战-决策树-22

Summary: idea problem record

Flexpro software: measurement data analysis in production, research and development

机器学习基础-主成分分析PCA-16

VS code更新后不在原来位置
![[July 5 event preview] Flink Summit](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[July 5 event preview] Flink Summit

Leetcode 1518. wine change

Fundamentals of machine learning - support vector machine svm-17

03 pyechars 直角坐标系图表(示例代码+效果图)
随机推荐
A brief introduction to the for loop. Some of the code involves arrays
[graduation design] heart rate detection system based on single chip microcomputer - STM32 embedded Internet of things
Jetpack Compose 完全脱离 View 系统了吗?
How to open the power saving mode of win11 system computer
Unity installs the device simulator
Science heavyweight: AI design protein has made another breakthrough, and it can design specific functional proteins
How can non-standard automation equipment enterprises do well in product quality management with the help of ERP system?
LeetCode 移除元素&移动零
【嵌入式C基础】第4篇:运算符的使用
Quick read in
Uncover why devaxpress WinForms, an interface control, discards the popular maskbox property
Leetcode394 string decoding
子线程更新UI全解
Android工程师,如何使用Kotlin提供生产力?
Leetcode206 reverse linked list
Cloud native - runtime environment
【嵌入式C基础】第8篇:C语言数组讲解
Communication example between upper computer and Mitsubishi fn2x
Can molecular modeling solve the data dilemma of AI pharmacy?
Unity loads GLB model