This is the mail archive of the gcc-help@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: Creating P4 code on a P3 (gcc3.1)


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


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