This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: the difference between -mtune and -march
- From: keshav yadav <keshav dot yadav2005 at gmail dot com>
- To: ali hagigat <hagigatali at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 8 Feb 2011 14:30:22 +0530
- Subject: Re: the difference between -mtune and -march
- References: <AANLkTi=C0n98y-PqaK_sw334TegTsqvR6fWU4tgMfwxW@mail.gmail.com>
Hi ali,
-march is arch (mips/arm)
-mtune(specifc to core like 34kc etc)
thanks
On Tue, Feb 8, 2011 at 2:13 PM, ali hagigat <hagigatali@gmail.com> wrote:
> Why two separate options have been considered for gcc, -mtune and
> -march? I wonder if anybody can give an example application of using
> these options while they are different.
> By -mtune the code is optimized for one specific processor, what does
> this optimization mean? gcc changes the assembly instructions
> specified by -march and will turn them into the processor specified by
> -mtune?
> So why do we need -mtune? We can compile by -march from the beginning.
>