I have done a lot of computer composition principles before , When it comes to big end storage and small end storage, it will burn your brain , Always don't understand , Today, I focused on review , Share with you .

The so-called big end mode or small end mode , In fact, it is the storage mode of data in memory unit .

Here is some basic knowledge of computers ,

Most computers are addressed in byte order , as 0000
0000H( hexadecimal ) Means co ownership 2 of 32 Power memory unit , Each unit can store one byte ( Total 4GB Memory space ), One byte represents 8bit( Bit ).

among 2 Bit hexadecimal = 8 Bit binary number , such as 00H = 0000 0000b, One byte .

So usually one byte needs 2 position 16 Hexadecimal number for storage , So what are the big end mode and the small end mode ?

Assume to store address 1234 5678H Store one int Type variable 100, Namely 0000 0064H( Hexadecimal representation ),
The high byte portion of the data ----> Low byte part : 00H---->00H---->00H---->64H
The low byte portion of the data ----> High byte part : 64H---->00H---->00H---->00H

big endian :

Big end means , The high byte portion of the data is stored at the low address , The low byte portion of the data is stored at the high address ( The latter part is not recommended , It's easy to get confused ).

be 1234 5678H storage 00H,1234 5679 storage 00H,1234 567A storage 00H,1234 567B storage 64H.

That is, the low address part stores high byte data .

Small end mode :

Small end mode refers to , The low byte portion of the data is stored at the low address , The high byte data is saved in the high byte address ( The latter part is not recommended , It's easy to get confused ).

be 1234 5678H storage 64H,1234 5679 storage 00H,1234 567A storage 00H,1234 567B storage 00H.

That is, the low address part stores low byte data .

To deeply understand these concepts, we need to carefully understand the working mode of memory and the storage mode of data , It is also very important to do more questions , Come on !

Technology
©2019-2020 Toolsou All rights reserved,
C++ of string of compare usage MySQL Basics Commonly used sentence ( Add / delete / modify query )C Language of a Gobang game implementation QT5.9 Use of learning notes QSqlQuery Method of Qt Getting Started tutorial 【 Basic controls 】QCalendarWidget calendar control java Polymorphic array of web Front end signature plug-in _signature_pad Plug in implements electronic signature function centos7 install RabbitMqspringboot use redis Experiment 4 Automated test tools - software test