mikeage.net Logo

mikeage.net @ ט׳ שבט תשפ״ג

Posts Tagged ‘Endian’

Identifying Big Endian or Little Endian Progmatically

‍‍ה׳ מרחשון תשס״ז - Friday, October 27th, 2006

Most (99%+) of microprocessors available to the consumer and/or embedded market are either Big Endian or Little Endian; this almost never actually matters. However, sometimes one needs to write endian specific code. Here's how to have code identify if it's running on a big endian or little endian machine:

Quick Map
Content +
Personal +
Archives +
Site Stuff +
RBS Weather +
Search +
Recent Images

Valid XHTML 1.1!
Printer Friendly Page

Last Modified: September 04, 2006 @ 02:11 CST

Memory(TRUE): 4194304/4194304
Memory(FALSE): 2976336/2986296