This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Creating P4 code on a P3 (gcc3.1)
- From: Phil Klunzinger <phil at wavefun dot com>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 21 May 2002 19:43:36 -0700
- Subject: Re: Creating P4 code on a P3 (gcc3.1)
- Organization: Wavefunction Inc.
- References: <3CEAECF4.8040200@wavefun.com>
Thanks for the responses.
My immediate problem was that I did not have recent enough assembler
(gnu binutils). After building a new 'as' I can now compile the jobs.
Unfortunately, it seems one needs an entire new build of the kernel
to run the SSE2 (perhaps even SSE) code. Does anybody know more
specifics? And/or if any of the commercial distributions ship
the appropriately moded kernel?
Phil Klunzinger wrote:
>
> I am having difficulty compiling for my P4 machine.
> I get the following assembler error messages when i compile with
> -march=pentium4.
>
> > cczA5DS6.s: Assembler messages:
> > .s:2898: Error: no such 386 instruction: `cvtsi2sd 420(%esp),%xmm2'
> > .s:2899: Error: no such 386 instruction: `movsd %xmm2,88(%esp)'
> > .s:2905: Error: no such 386 instruction: `movsd 88(%esp),%xmm1'
> etc. ...
>
> I shouldn't have to build gcc as a cross-compiler do I?
> (My compile machine is a dual cpu P3 with lots of RAM, but i need
> to ship product to P3s P4s and Athlon's.)
>
--
Dr. Philip Klunzinger
Computational Chemist
Wavefunction, Inc. :: www.wavefun.com