equal
deleted
inserted
replaced
1 #include <stdio.h> |
1 #include <stdio.h> |
2 |
2 |
3 // This pretty simple file checks if the system is LITTLE_ENDIAN or BIG_ENDIAN |
3 // This pretty simple file checks if the system is LITTLE_ENDIAN or BIG_ENDIAN |
4 // it does that by putting a 1 and a 0 in an array, and read it out as one |
4 // it does that by putting a 1 and a 0 in an array, and read it out as one |
5 // number. If it is 1, it is LITTLE_ENDIAN, if it is 256, it is BIG_ENDINA |
5 // number. If it is 1, it is LITTLE_ENDIAN, if it is 256, it is BIG_ENDIAN |
6 // |
6 // |
7 // After that it outputs the contents of an include files (endian.h) |
7 // After that it outputs the contents of an include files (endian.h) |
8 // that says or TTD_LITTLE_ENDIAN, or TTD_BIG_ENDIAN. Makefile takes |
8 // that says or TTD_LITTLE_ENDIAN, or TTD_BIG_ENDIAN. Makefile takes |
9 // care of the real writing to the file. |
9 // care of the real writing to the file. |
10 |
10 |