gnu.gcc.help
[Top] [All Lists]

Cpu types

Subject: Cpu types
From: Stefano Chiappa
Date: Fri, 21 Jul 2006 15:12:29 +0200
Newsgroups: gnu.gcc.help
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

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy