Re: [arm-gnu] Is arm-2009q1-203-arm-none-linux-gnueabi version support for ARM architecture v7(armv7)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [arm-gnu] Is arm-2009q1-203-arm-none-linux-gnueabi version support for ARM architecture v7(armv7)
- To: Richard Earnshaw <rearnsha@xxxxxxx>
- Subject: Re: [arm-gnu] Is arm-2009q1-203-arm-none-linux-gnueabi version support for ARM architecture v7(armv7)
- From: nagaraju goruganti <nagaraju.goruganti@xxxxxxxxx>
- Date: Wed, 16 Dec 2009 20:24:11 +0530
Thank you for your help.
I have onr more doubt.
If we build any application ,by using arm-2009q1-203-arm-none-linux-gnueabi
cross tool chain, it will build for Tag_CPU_name: "ARM10TDMI" ,Tag_CPU_arch:
v5T, now my question is, how can change the build configuration, so that ,by
default ,the cross tool will build any application to Tag_CPU_name:
"CORTEX-A9" Tag_CPU_arch: v7 ?
On Wed, Dec 16, 2009 at 3:47 PM, Richard Earnshaw <rearnsha@xxxxxxx> wrote:
>
> On Wed, 2009-12-16 at 09:56 +0530, nagaraju goruganti wrote:
> > hi,
> >
> > Is arm-2009q1-203-arm-none-linux-gnueabi version support for ARM
> > architecture v7(armv7),If not ,What should I do to compile code for
> > armv7(-march=armv7)?
> >
> > I have tried this
> > #arm-none-linux-gnueabi-gcc -o hello_open hello.c -march=armv7
> >
> > but giving error:hello.c:1: error: target CPU does not support ARM
> > mode
>
> armv7 is a pseudo architecture name, rather than a real one. It
> represents the common subset of armv7-a, armv7-r and armv7-m. This is
> essentially thumb2 instructions, but without the thumb-2 div.
>
> So to compile for it you need to also specify -mthumb (or you will see
> the error message you mention above).
>
> Most of the time, however, you'll really want to use the full
> architecture name for your target rather than this pseudo architecture.
>
> Note: You normally cannot link for the armv7 pseudo architecture. At
> link time you really do need to know what type of system you will be
> running on in order to get the right start-up code.
>
> R.
>
>
--
Regards
Nagaraju G