linux-mips
[Top] [All Lists]

Re: [RFC] Optimize swab operations on mips_r2 cpu

To: Franck <vagabon.xyz@gmail.com>
Subject: Re: [RFC] Optimize swab operations on mips_r2 cpu
From: Ralf Baechle <ralf@linux-mips.org>
Date: Sun, 29 Jan 2006 15:07:48 +0000
Cc: "Kevin D. Kissell" <kevink@mips.com>, Nigel Stephens <nigel@mips.com>, linux-mips@linux-mips.org
In-reply-to: <cda58cb80601270932x323e4923j@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <43D8F000.9010106@mips.com> <cda58cb80601260831i61167787g@mail.gmail.com> <43D8FF16.40107@mips.com> <cda58cb80601261002w6eb02249k@mail.gmail.com> <43D93025.9040800@mips.com> <cda58cb80601270103t1419117cq@mail.gmail.com> <43DA240F.5070301@mips.com> <cda58cb80601270654jf779622w@mail.gmail.com> <00df01c62357$ef9a1fa0$10eca8c0@grendel> <cda58cb80601270932x323e4923j@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.2.1i
On Fri, Jan 27, 2006 at 06:32:15PM +0100, Franck wrote:

> > ifdef CONFIG_CPU_SMARTMIPS
> > cflags-$(CONFIG_CPU_MIPS32R1)   += \
> >                         $(call 
> > set_gccflags,mips32,smartmips,4kec,mips3,mips2)\
> >                         -Os, -Wa,--trap

-Os has no business here.  That's what CONFIG_CC_OPTIMIZE_FOR_SIZE is for.

> > if the values I threw in for the MIPS32R1+SmartMIPS (e.g. 4KSc) combination
> > would actually work.  I just want to point out that it isn't that hard to 
> > do.
> 
> I agree it's not hard to do. But it becomes more tricky if you want
> something clean that gives best results for every cpus...Moreover I
> don't think your solution avoids maintenence problems IMHO.
> 
> Ralf, could you give your opinion ?

I think I'm going to start by throwing the insane option selection
complexity which was needed for support of gcc 2.95 ... 3.1; a few days
gcc 3.2 became the minimum required to build a 2.6 kernel, then see what
can nicely be implemented.

  Ralf

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