当前位置:网站首页>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
边栏推荐
- Literals and type conversions of basic data types
- The SH runtime directly reported an error syntax error near unexpected token ` $'. \r‘
- Molecular dynamics - basic characteristics of molecular force field
- Leetcode topic [array] -33- search rotation sort array
- Yunzhisheng atlas supercomputing platform: computing acceleration practice based on fluid + alluxio (Part 2)
- This is a simple and cool way to make large screen chart linkage. Smartbi will teach you
- After 20 days' interview, I finally joined Ali (share the interview process)
- [data recovery in North Asia] a data recovery case in which the upper virtual machine data is lost due to the hard disk failure and disconnection of raid6 disk array
- Idea implements hot deployment
- MySQL installation tutorial
猜你喜欢
Causes and solutions of unreliable JS timer execution

Explain memcached principle in detail
Literals and type conversions of basic data types

Node installation method you don't know

MySQL is slow to add indexes_ Why is your SQL so slow? Why is your MySQL index invalid?
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%
![[nailing scenario capability package] smart office phone](/img/ec/c2f342a54ab69d8b834a8a1c8f8a01.jpg)
[nailing scenario capability package] smart office phone

Rounding related calculation
Yunzhisheng atlas supercomputing platform: computing acceleration practice based on fluid + alluxio (Part 2)
MySQL installation tutorial
随机推荐
What is API
[nailing scenario capability package] manage the on-the-job / off-the-job situation of employees
[nailing scenario capability package] company / Park Digital canteen
Soft test intermediate simple notes
How to buy the millions of medical insurance for children? How much is it a year? Which product is the best?
[summary] 2021unctf Campus (cry & MISC)
Lesson 3 urllib
OLED driver learning based on ssd1306 (I): SSD Chinese command table (handling)
C language dynamic memory allocation
银河证券靠谱吗?开证券账户安全吗?
MySQL operation Basics
Server pressure troubleshooting top
R language quantile autoregressive QAR analysis pain index: time series of unemployment rate and inflation rate
Interviewer: why does TCP shake hands three times and break up four times? Most people can't answer!
VFS appears when mounting a file system from an SD card: cannot open root device "mmcblk1p2“
How to play one to many in JPA?
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
Win10 common software
Idea implements hot deployment
ZABBIX foundation details