This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Intel 386 and AMD x86-64 Options


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]