Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

"Endian" in Processors?

Status
Not open for further replies.
Little Endian and Big Endian, is the way that the processor stores data in the memory.

When you have data that is bigger than 8 bits, for example:

int data=0x1234; // 16 bits long
long data1=0x12345678 // 32 bits long

If your processor is big endian, the data will be stored in memory as:

int data = 0x1234
Dir 0 = 0x12
Dir 1 = 0x34

long data1 = 0x12345678

Dir 0 = 0x12
Dir 1 = 0x34
Dir 2 = 0x56
Dir 3 = 0x78

But, if the processor is Little endian, data will be stored as

int data = 0x1234

Dir 0 = 0x34
Dir 1 = 0x12

long data1 = 0x12345678

Dir 0 = 0x78
Dir 1 = 0x56
Dir 2 = 0x34
Dir 3 = 0x12

Hope it helps you
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top