lkml.org 
[lkml]   [1999]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: spinlock
On Wed, Dec 01, 1999 at 11:56:56PM +0000, David Wragg <dpw@doc.ic.ac.uk> wrote:
> It might seem like I'm harping on about the C standard. It's not
> directly relevant to gcc as it is used in kernel programming, but it
> does constrain the gcc developers, so it can be useful for predicting

The conclusion from the gcc developers was that this property (single
instruction) is quite useless in practise (you can't guarantee it under
most circumstances), and it is not too useful either (e.g. smp).

The rules on when the compiler would use such instructions and when not
are also too convoluted to be useful.

--
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg@opengroup.org |e|
-=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+
The choice of a GNU generation |
|

-
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:55    [W:0.028 / U:0.776 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site