Reference of compiler flags:
http://gcc.gnu.org/onlinedocs/gcc/i3...4-Options.html
So, what that page doesn't quite tell me, is which if any of the compiler flags I'm using, are absolutely mutually inclusive/exclusive, except for one thing it does say:
-march=XXX implies
-mtune=XXX
----------------------------------------------
My CPU is an Intel E2160 CORE2 with EM64T, and I'm running and building stuff for Slack64.
So, I'd like to know, if possible, ragarding my CPU:
1) Is
-march=native identical to
-march=core2? Will they produce identical code for me?
2) Does
-march=[
native|
core2] imply
-m64 or is
-m64 just a generic sort of thing, for non-specific CPU's when no
-march is specified?
Do I need to specify
-m64 at all? Maybe my GCC + CPU will = CPU-optimized 64 bit code by default, just by specifying the
-march flag??
To make selection of the best method simple, consider the following possible combinations, noting the order of the flags. Is Any particular one of these methods going to be "the best" for me?:
t) gcc -march=core2
u) gcc -march=native
v) gcc -m64
w) gcc -march=native -m64
x) gcc -march=core2 -m64
y) gcc -m64 -march=native
z) gcc -m64 -march=core2
Please help clarify/distinguish these options for me
Sasha