#include <stdio.h> #include <string.h> /* for srtcmp() */
int main(void)
{ int err_count = 0;
#ifdef WORDS_BIGENDIAN
printf("CPU set to big-endian\t\t\t(WORDS_BIGENDIAN == 1)\n"); #else
printf("CPU set to little-endian\t\t(WORDS_BIGENDIAN == 0)\n"); #endif
#ifdef CPU_RISC
printf("CPU set to RISC\t\t\t\t(CPU_RISC == 1)\n"); #elifdefined(CPU_CISC)
printf("CPU set to CISC\t\t\t\t(CPU_CISC == 1)\n"); #else
printf( "CPU set to an unknown type, probably due to a configuration error\n");
err_count++; #endif
#ifdef CPU_ALTIVEC
printf("CPU set to ALTIVEC\t\t\t\t(CPU_ALTIVEC == 0)\n"); #endif
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.