On 08/08/2013 10:37 AM, zhaobin xv wrote: > Thank you for your answer > if __ARM_ARCH_2__ is defined by GCC when compiling for the ARMv2 > architecture,how do gcc know the architecture is ARMv2? > > and I can't find thing about __ARM_ARCH_2__ in gcc manual,could you > tell me where I can find Please don't top-post on gcc-help. GCC doesn't know the architecture is ARMv2. If the architecture is not ARMv2, you must use the correct arch arguments to GCC. This is in the manual. Andrew.