[Top] [All Lists]

Re: -mcpu vs. binutils

Subject: Re: -mcpu vs. binutils
From: Thiemo Seufer <>
Date: Wed, 19 Mar 2003 01:16:52 +0100
Cc: Guido Guenther <>, Thiemo Seufer <>
In-reply-to: <20030318232454.GA19990@bogon.ms20.nix>
Original-recipient: rfc822;
References: <20030318154155.GF2613@bogon.ms20.nix> <> <20030318174241.GG2613@bogon.ms20.nix> <> <20030318232454.GA19990@bogon.ms20.nix>
User-agent: Mutt/1.4i
Guido Guenther wrote:
> > -march=BAR:
> > Allow opcodes for CPU BAR in addition to the ISA ones.
> > 
> > -mtune=BAZ:
> > Optimize opcode scheduling for CPU BAZ.
> So to build kernels for say IP22 R5k I'd change the current
>       GCCFLAGS += -mcpu=r5000 -mips2 -Wa,--trap
> to 
>       GCCFLAGS += -mabi=o32 -march=R5000 -mtune=R5000 -Wa,--trap
> where as for R4X00 I use
>       GCCFLAGS += -mabi=o32 -march=R4600 -mtune=R4600 -Wa,--trap
> Correct?

Yes, this should work. You can leave the -mtune out, since it defaults
to the value of -march anyway.


<Prev in Thread] Current Thread [Next in Thread>