AMD Phenom II X6 1090T


<byte order>

 

Z80/AMD/Intel   etc. =>  little endian

SPARC/Motorola etc. => big endian

PowerPC/ARM => bi-endian

 

Think over why the src below enables us to determine cpu endians.

 

<C src of judgement of endian>

#include <stdio.h>

int main() {

        int i = 1;

        if ( *(char*)&i ) {

                printf("little endian\n");

        } else {

                printf("big endian\n");

        }

        return 0;

}

 

Write a comment

Comments: 3