This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Intel 386 and AMD x86-64 Options
- From: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
- To: Ander <ander1 at wanadoo dot es>
- Cc: gcc at gcc dot gnu dot org
- Date: 10 Mar 2003 22:20:56 +0100
- Subject: Re: Intel 386 and AMD x86-64 Options
- References: <1046725249.388.23.camel@agaliaretph>
Ander <ander1 at wanadoo dot es> writes:
> I want to know if there is any difference in using -march=i686,
> -march=pentium3, -march=athlon, -march=athlon-xp or if they are all
> synonyms of -march=i686. I'm writing code in the configure.ac to add
> the optios for the detected CPU, and I don't know if it will be
> enougth to detect the family of the processor and use -march=i386,
> -march=i486, -march=i586 and -march=i686, or if I have to find the
> CPU model and use the specific option.
I wrote a small script (http://people.debian.org/~falk/gcc-arch) that
tries to do this, maybe it is of use to you. It only handles i386 and
Alpha. I'm not sure I got it 100% correct, though, suggestions are
welcomed.
--
Falk