This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Pentium instructions with gcc?
- To: "GCC-List" <gcc-help at gcc dot gnu dot org>
- Subject: Re: Pentium instructions with gcc?
- From: "Jean-Pierre Schwickerath" <gcc-list at schwicky dot net>
- Date: 11 Mar 2001 09:39:20 CET
- References: <01031102280701.00394@ashur>
- Reply-To: "Jean-Pierre Schwickerath" <gcc-list at schwicky dot net>
On Sun, 11 Mar 2001 01:32:40 +0000, krieg@iname.com said:
> hello everyone
>
> I'm a litle new to gcc and I would like to know how to generate binaries
> that are optimized for pentium processors (that make use of pentium
> instructions)
> I have used some options like -mcpu=i586 -march=i586
> but the resulting binaries still run on a 486... what makes me think that they
> are not using pentium instructions, but as I know nothing about assembly
> and about what the pentium-only instructions do, maybe the programs that I have
> tested just were too simple to make use of such instructions... maybe not...
> I will really appreciate some help about this =]
I'm not sure about this, but you should try -mcpu=pentium -march=pentium
Cheers,
Jean-Pierre
--
Jean-Pierre Schwickerath - Powered by GNU/LinuX!
E-Mail: email@schwicky.net - http://schwicky.net
PGP Key ID: 0x48C39212 - AIM: Schwicky - ICQ's UIN: 4690141
Nothing's impossible... Everything is relative!