Re: [arm-gnu] thumb and thumb2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] thumb and thumb2



On Fri, 2008-06-20 at 18:59 +0530, Chandan THAKUR wrote:
> Hi,
> 
> I am trying to build application for cortexA9 processor of ARM(v7). I am to 
> compile code for ARM,thumb-1,thumb-2. I am currently using -mthumb 
> -mcpu=cortex-a9 option to genrate thumb-2 code as mentioned in codesourcery 
> FAQ's. What option should be used to generate thumb1 code for cortex a9 core?
> 
> I am using 2008 toolchain.

The question is somewhat meaningless.  Thumb-2 is just an extended
version of thumb-1.  It isn't a separate mode.

If you really *really* want to restrict your code to running thumb-1
instructions, you could try "-march=armv6 -mtune=cortex-a9 -mthumb".

R.