This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Why use pentium4 for Pentium M?
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Zuxy Meng <zuxy dot meng at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 26 Feb 2007 23:52:03 -0800
- Subject: Re: Why use pentium4 for Pentium M?
- References: <es0c4q$fod$1@sea.gmane.org>
On Tue, Feb 27, 2007 at 12:30:16PM +0800, Zuxy Meng wrote:
> Hi,
>
> -march=native choose pentium4 instead of pentium-m for Pentium M processors
> (see config/i386/driver-i386.c)? Is this intentional or a typo?
>
It is because Pentium M implements Pentium instructions. You should
get:
bash-3.00$ /usr/gcc-4.3/bin/gcc -march=native x.i -S -v
...
/usr/gcc-4.3/libexec/gcc/i686-pc-linux-gnu/4.3.0/cc1 -fpreprocessed x.i -march=pentium4 -mtune=generic -quiet -dumpbase x.i -auxbase x -version -o x.s
H.J.