当前位置:网站首页>Big end and small end
Big end and small end
2022-06-25 21:14:00 【Rabbit cloud program】
Interview questions : Write how to test CPU The size of the code ?
Method 1 : Direct high byte judgment

Method 2 : utilize union, principle : Consortium union The storage order of is that all members start from the low address , And all members share storage space , Easier to understand

The big and small end is the topic of long-term conversation in the interview , Especially in some embedded software positions , And the position of system engineer is often mentioned .
First, let's take a look at the big and small side patterns .
Big end model : High bit corresponds to low address , The low bit corresponds to the high address ; In other words , That is, the high bit of the number is stored in the low address of the memory , The low bit is stored in the high address of the memory .
The small end model : High bit corresponds to high address , Low order corresponds to low address ; That is, the high bit of the number is stored in the high address of the memory , The low bit is stored in the low address of memory .
Learn to compile from the beginning , Single chip microcomputer , When does the principle of microcomputer come into being , We always talk about big end and small end modes , But people who don't often play with programming will ignore this detail , And this detail is very important , Especially in hardware data storage , If you don't pay attention to this detail , Will cause your project to crash .
At the intersection with hardware
边栏推荐
- Lesson 3 urllib
- 同花顺app是正规的吗?到底安不安全
- JS__ This, arguments, cloning, ternary operator__ Duyi
- Mysqldumpslow out slow statements in the database
- Heavy update! Yolov4 latest paper! Interpreting yolov4 framework
- The beginning of manjaro's journey
- [nailing scenario capability package] smart office phone
- The super easy-to-use test tool sorted out by Ali P8 for a week
- Is flush app regular? Is it safe or not
- Record some questions about MySQL (DNS reverse resolution in Linux)
猜你喜欢
Tencent music knowledge map search practice

Docker failed to remotely access 3306 after installing MySQL
![[nailing scenario capability package] manage the on-the-job / off-the-job situation of employees](/img/ec/c2f342a54ab69d8b834a8a1c8f8a01.jpg)
[nailing scenario capability package] manage the on-the-job / off-the-job situation of employees

OSI notes sorting

js(3)

js (1)
![[summary] 2021unctf Campus (cry & MISC)](/img/b1/8c4fb9c6d4f1b89361c0487762cdbd.jpg)
[summary] 2021unctf Campus (cry & MISC)

The SH runtime directly reported an error syntax error near unexpected token ` $'. \r‘

Finger collar pin exclusive Medal

Cvpr2019 | the latest cvpr2019 papers are the first to read!
随机推荐
Live broadcast preview | front line experts invite you to talk: the value of data science enabling multiple application scenarios
VFS appears when mounting a file system from an SD card: cannot open root device "mmcblk1p2“
Soft test intermediate simple notes
Get the root directory of the package at compile time from buildreoot
JS__ This, arguments, cloning, ternary operator__ Duyi
Openocd adds third-party device support: ht32f52352 Cortex-M0+
1.0-mq getting started and using
Illustration tcp/ip - Chapter 3 and 4 notes
2022 "gold, silver and four" is a must for job hopping. You must know 100 questions in 2022 intermediate and advanced Android interview to realize your big factory dream
Multi database and multi table backup and restore of MySQL under Linux
Must see the summary! In depth learning era, you should read 10 articles to understand image classification!
[nailing scenario capability package] enterprise and public institution intelligent access control
HMS core actively explores the function based on hardware ear return, helping to reduce the overall singing delay rate of the singing bar by 60%
How to play one to many in JPA?
[opencv] opencv from introduction to mastery -- detailed explanation of input and output XML and yaml files
Cvpr2019 | the latest cvpr2019 papers are the first to read!
Inventory - those automated test interview questions you can't help but know
Is it safe for qiniu school to open an account in 2022?
Bank digital transformation layout in the beginning of the year, 6 challenges faced by financial level structure and Countermeasures
Basic process of configuring utf8 in idea