> where we give the define like __mips__? This will probably be defined by the compiler. To see what the compiler defines: mips-elf-gcc -dM -E - < /dev/null Cheers, Jon