lkml.org 
[lkml]   [2000]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Code optimization <LEA Instruction>
On Thu, 27 Jan 2000, Alan Cox wrote:

> > One of the things it states is that the LEA instruction can
> > be used to change the value of an index register faster than
> > using the ADD instruction (Page G-10, Intel '486 Rag).
>
> It is

It is not. Never was and can't possibly be. Further, tests show
as expected, that address generation takes more time than register
addition.

> >
> > As usual, the Intel reference manual is wrong for all types
> > of CPUs that I have tested (486-686).
>
> Your test is wrong. See the notes on address generation stalls
>

Yea. Sure.

Cheers,
Dick Johnson

Penguin : Linux version 2.3.39 on an i686 machine (800.63 BogoMips).


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

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.048 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site