当前位置:网站首页>NO.4位、字节、信息存储
NO.4位、字节、信息存储
2022-07-17 18:44:00 【L.Bubu】
目录
1.基本知识
●1 Byte = 8bits
●典型数据类型的长度:

●每台计算机都有一个字长(Word Size):
1).指明了整数和指针数据的标称大小
2).决定了虚拟地址空间的最大大小
3).32位字长限定了虚拟地址空间为4GB,即2^32 bytes=4GB
4).字长为64位的机器成为主流
2.大、小端法
●大端法: Sun, PPC Mac, Internet:最高有效字节在最前面
●小端法: x86:最低有效字节在最前面
●最低有效位(the least significant bit,lsb)是指一个二进制数字中的第0位(即最低位),具有权值为2^0
●最高有效位(the Most Significant Bit,msb),是指一个n位二进制数字中
的n-1位,具有最高的权值2^(n − 1)
例:从 0x100地址处存储值0x01234567

3.C语言中的位级运算
●&:按位与
●|:按位或
●~:按位非
●^:按位异或
●&&:逻辑与
●||:逻辑或
●!:逻辑非
●左移: x << y
将 x 左移 y 位
左边的位全都丢弃
在右边填0
●右移: x >> y
将 x 右移y 位
右边的位全都丢弃
逻辑移位:左边填0
算术移位:填充符号位
边栏推荐
- 【7.13】代码源 -【饿饿 饭饭】【路径计数2】【函数求和】
- [7.9] code source - [number selection] [sequence operation] [minimum or spanning tree]
- Forget about postman. Apifox is better
- Codeforces Round #808 (Div. 2)ABCD
- Perl command batch replaces some contents in the file
- 【码蹄集新手村 600 题】运算符 / 在不同的运算顺序中的类型转换
- "Podcast" \ # 392 original Tang Lang original food: MIDSUMMER night, ma Sha, kebab, Kebab
- Elastic load balancing automatically distributes the access traffic to multiple cloud servers, expands the external service capacity of the application system, and improves the security of the applica
- Solutions to the failure of dedecms dream weaving to save the current column changes
- Onvif protocol related: 2.1.2 get screenshot URL in none mode
猜你喜欢
![[code hoof set novice village question 600] formatted input and output, using 0 to replace the completed space](/img/15/5a13501272165e6488e38a98e3c69c.png)
[code hoof set novice village question 600] formatted input and output, using 0 to replace the completed space

Responsive dream weaving template wine cellar website
![[postgraduate entrance examination vocabulary training camp] day 5 - alarm, cooperate, point, benefit, industrial, revolution, mechanism](/img/50/07dd47d1bc46681e19d133b2e219c4.png)
[postgraduate entrance examination vocabulary training camp] day 5 - alarm, cooperate, point, benefit, industrial, revolution, mechanism

【码蹄集新手村 600 题】float 与 double 的格式说明符

Simulation of overvoltage protection (OVP) circuit based on PMOS

面试官:可以接受转Go吗?

每周小结(*65):有计划的输出

响应式织梦模板物流货运服务类网站
![[Tencent blue whale] the seventh 7.24 operation and maintenance day holiday greetings ~ come and make a wish~](/img/60/ab96abd599230078b19abad0aecba2.png)
[Tencent blue whale] the seventh 7.24 operation and maintenance day holiday greetings ~ come and make a wish~

Health prevention guide 3: health care
随机推荐
鸿蒙设备开发快速入门之Helloword与LED——华为云14天鸿蒙设备开发实战学习笔记 第二篇
codeforce:A. Difference Operations【数学思维】
【7.12】Codeforces Round #806 (Div. 4)
STM32F1与STM32CubeIDE编程实例-MPU-6050 六轴(陀螺仪 + 加速度计)驱动
如何优雅的升级 Flink Job?
弹性负载均衡将访问流量自动分发到多台云服务器,扩展应用系统对外的服务能力,提高应用程序安全性。
Module 7 (Architecture Design of King glory mall)
[code hoof set novice village 600 question] calculate the number of digits of an integer
torch. utils. data. Dataloader description
onvif协议相关:3.1.2 Digest方式获取token列表
S32K148_CAN驱动(裸机开发)
【7.15】代码源 -【整齐的数组2】【三进制循环】【树上逆序对】【蜗蜗的数列】
[code hoof set novice village question 600] format specifier of float and double
【7.9】代码源 -【选数】【序列操作】【Minimum Or Spanning Tree】
onvif协议相关:2.1.1 none方式获取token
每周小结(*65):有计划的输出
eth入门之运行节点
SSH keyless login
Flutter 使用 AnimatedSwitcher 做场景切换
如何在MFC中添加一个线程