sorry I don't know why top-post on gcc-help I can't find this in manual :http://103.2.211.229/videoplayer/gcc.pdf?ich_u_r_i=375c3dcc4558b108b7ab75a3e76cc6c0&ich_s_t_a_r_t=0&ich_e_n_d=0&ich_k_e_y=1345088908750963382403&ich_t_y_p_e=1&ich_d_i_s_k_i_d=6&ich_u_n_i_t=1 2013/8/8 Andrew Haley <aph@xxxxxxxxxx>: > 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. >