lkml.org 
[lkml]   [1998]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: NOP instruction


    On Tue, 15 Dec 1998, Gabriel Paubert wrote:
    > Actually the Intel nop is coded as xchg [e]ax,[e]ax since the 8088. On the
    > 386, it took exactly the same time as xchg [e]ax with any other register
    > and was slow. From the 486 or Pentium, I can't remember, the NOP is
    > optimized and much faster than the actual xchg instructions.
    Besides xchg is atomic (which is why it is used in locking primitives (at least
    on some systems)) and is to be avoided whenever possible.

    Regards,
    Tigran.


    -
    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:46    [W:0.017 / U:0.592 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site