| To: | Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de> |
|---|---|
| Subject: | Re: -mcpu vs. binutils 2.13.90.0.18 |
| From: | Guido Guenther <agx@sigxcpu.org> |
| Date: | Wed, 19 Mar 2003 00:24:54 +0100 |
| Cc: | linux-mips@linux-mips.org |
| In-reply-to: | <20030318190841.GO13122@rembrandt.csv.ica.uni-stuttgart.de> |
| Mail-followup-to: | Guido Guenther <agx@sigxcpu.org>, Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>, linux-mips@linux-mips.org |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20030318154155.GF2613@bogon.ms20.nix> <20030318160303.GN13122@rembrandt.csv.ica.uni-stuttgart.de> <20030318174241.GG2613@bogon.ms20.nix> <20030318190841.GO13122@rembrandt.csv.ica.uni-stuttgart.de> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.4i |
Hi Thiemo,
thanks a lot for the explanations!
On Tue, Mar 18, 2003 at 08:08:41PM +0100, Thiemo Seufer wrote:
> This would be nice, but older compilers don't have -march/-mtune.
> IIRC gcc 3.0.X is the first one to employ these. Similiar for -mabi.
I don't care about old compilers at the moment ;)
[..snip..]
> -mabi=FOO:
> Produce, hosted on a multi ABI system, a userland binary with the lowest
> possible ISA for the selected ABI.
>
> Then there are optimizations for different CPUs.
>
> -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?
-- Guido
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Running on R4k/R3k Indigo, Achim Hensel |
|---|---|
| Next by Date: | Re: -mcpu vs. binutils 2.13.90.0.18, Thiemo Seufer |
| Previous by Thread: | Re: -mcpu vs. binutils 2.13.90.0.18, Thiemo Seufer |
| Next by Thread: | Re: -mcpu vs. binutils 2.13.90.0.18, Thiemo Seufer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |