This is the mail archive of the
mailing list for the GCC project.
the difference between -mtune and -march
- From: ali hagigat <hagigatali at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 8 Feb 2011 12:13:03 +0330
- Subject: the difference between -mtune and -march
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
So why do we need -mtune? We can compile by -march from the beginning.