This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Effect of -mtune=* on x86 or x86-64 systems?
- From: Wirawan Purwanto <wirawan0 at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 6 Jan 2009 15:28:06 -0500 (EST)
- Subject: Effect of -mtune=* on x86 or x86-64 systems?
Hi,
What is, and how much is, the effect of -mtune (or its implication in
-march) switch of gcc (version 4.3, that is)? Suppose I use
-march=pentium4 and then run the binary on pentium M machine (both support
MMX, SSE, and SSE2), what kind of penalty will I get? I don't have a
particular code in mind, but think of a numerical-type code with lots of
double precision math.
Thanks,
Wirawan