Here there is a really simple program written in C that you can use to check the endianness of the machine that you are using.

#include <stdio.h>
int main(){
unsigned int n = 1;
char *p;
p = (char*)&n;
if (*p == 1)
  printf(“Little Endian\n”);
else if (*(p + sizeof(int) – 1) == 1)
  printf(“Big Endian\n”);
  printf(“What the crap?\n”);
return 0;