|
|
Hi all,
I have 3 Linux machines with the following processors (I collected the
dato about procs by /proc/cpuinfo):
1) P4 HT (cpu family=15,model=4,stepping=1)
2) Athlon (cpu family=15,model=4,stepping=10)
3) Xeon (P4) quad core 64bit (cpu family=15,model=6,stepping=4).
I'd like to produce, with gcc4.1.1 a different executable for each, by
using the apt compiler/options (march). I'd like to generate all
executables on machine 1, then I compiled gcc without specifying any
target, and I believe gcc choosen i?86 as described in the gcc manual.
Now I'd like to generate code for 2) and 3), I suppose I have to compile
gcc in order to have a cross-compiler, in this case for target
ia64-linux. Is it correct?
Then if I want to specify the specific cpu while compiling my program
(using the -march= option), I think I should use for 1 and 3:
march=pentium4, for 2: march=athlon. It is correct?
I'm a little lost in the Intel and AMD cpu's families...
Thank you
Stefano
|
|