There are two types of processor available. They are "Little Endian" and "Big Endian". Very good example of Little Endian processors are Intel x86 based processors whereas Motorola and some few processors are mostly Big Endians.
How they differ depends on how they manage byte content in 32/64bit register. A Little endian CPU manage lower bytes in lower bit offfets which uniformly matches from LSB towards MSB. Whereas Big Endian processor manages bytes in reverse order. Lowet byte goes in most significat bits and gradually upper bytes are managed in lower bits. Below diagram shows how bytes are arranged in 32bit registers.
One point to note here is compiler and assembler takes care of the bitwise and shifting operations we do in our C/ASM programs. We can detect the difference only when we access row bytes in a 32bit registers. Below program show how to detect endianess from C program.
About our authors: Team EQA
You have viewed 1 page out of 248. Your C learning is 0.00% complete. Login to check your learning progress.
Questions index C Questions C++ Questions Win32 MFC COM/DCOM DLL Questions
Compilers & Editors
Download Visual Studio Download XCode Download Visual Studio Code Android studio install sdk Eclipse installer Best C compilers IDEs
Development system setup
Windows media creation tool MSDN subscription Ubuntu virtualbox
New updated posts
Why learn C? Draw on printer Free alt softwares