当前位置:网站首页>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
算术移位:填充符号位
边栏推荐
- 大家好,问一下数据库没开始binlog如何实时同步么,有没有好的方案
- 【7.8】Educational Codeforces Round 131 (Rated for Div. 2)
- onvif协议相关:常用类说明
- 【码蹄集新手村 600 题】运算符 / 在不同的运算顺序中的类型转换
- onvif协议相关:4.1.3 WS-Username token方式获取截图url
- onvif协议相关:3.1.2 Digest方式获取token列表
- Codeforce:g. good key, bad key [greed]
- [code shoe set novice village question 600] for the formatting control of strings, that is, the width and accuracy of strings
- onvif協議相關:4.1.3 WS-Username token方式獲取截圖url
- Module 7 (Architecture Design of King glory mall)
猜你喜欢

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

torch.utils.data.DataLoader说明

onvif协议相关:2.1.3 none方式获取流地址

这些年我开源的几个小项目

Onvif protocol related: 4.1.3 WS username token method to obtain screenshot URL

Onvif protocol related: 3.1.3 get screenshot URL in digest mode

Responsive dream weaving template wine cellar website

【码蹄集新手村 600 题】运算符 / 在不同的运算顺序中的类型转换

565. Array nesting

onvif协议相关:4.1.4 WS-Username token方式获取流地址
随机推荐
Onvif protocol related: 3.1.1 digest access authorization
每周小结(*65):有计划的输出
【考研词汇训练营】Day 7 —— second,attract,current,collect,simple,communicate,vocation
[7.14] code source - [open box] [XOR inverse] [continuous subsequence] [trigonometric fruit count]
[code hoof set novice village question 600] operator / type conversion in different operation sequences
onvif协议相关:3.1.4 Digest方式获取流地址
Weekly summary (*65): planned output
面试官:可以接受转Go吗?
Flutter uses animatedswitcher to switch scenes
(pc+wap) dream weaving template clothing dress website
[code hoof set novice village question 600] align left and right when outputting
[JS reverse crawler] - Youdao translation JS reverse practice
Transphorm's surface mount packaging product series adds industry standard to-263 (D2Pak) packaging products to expand the advantages of supergan platform
QT use qlisview to realize QQ login history list
Codeforces Round #808 (Div. 2)ABCD
Codeforce:a. doremy's IQ [reverse greed]
[code hoof set novice village question 600] format specifier of float and double
【7.14】代码源 -【拆方块】【XOR Inverse】【连续子序列】【三角果计数】
Template virtual machine environment preparation
onvif协议相关:4.1.4 WS-Username token方式获取流地址