lkml.org 
[lkml]   [2000]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Patch to remove undefined C code
On Tue, Oct 17, 2000 at 10:40:12AM +0100, Bernd Schmidt wrote:
> > I compiled using "gcc -S -Wall -O2 -fomit-frame-pointer -m486" to generate
> > the assembler code. The old code is 17 instructions long and the new code
> > is 11 instructions. As well as being shorter, simple timing test indicate
> > that the new code is significantly quicker.
>
> This is something the compiler ought to know about.

Ought to, but we mostly only rewrite addresses like that inside loops.
You might be able to convince CSE to massage that sort of thing, but I
imagine it would be ugly.

It would be cool though -- get everything into direct offset form as
much as possible might even make it easier to transform it all back
to autoinc if the target supports that sort of thing.


r~
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:41    [W:0.569 / U:0.032 seconds]
©2003-2014 Jasper Spaans. Advertise on this site