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): 1572864/1572864
Memory(FALSE): 1476216/1512440