Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: local/temporary labels in gcc inline assembly

Author: Matt Taylor

Date: 16:09:25 12/09/02

Go up one level in this thread


On December 09, 2002 at 18:44:14, Dieter Buerssner wrote:

>On December 09, 2002 at 17:46:03, Robert Hyatt wrote:
>
>>According to the intel docs, the xchg instruction is a interlocked instruction
>>already,
>>and the lock prefix is redundant.  My current lock code does not have this and
>>it works
>>fine, so there is more than that going on.
>
>Thanks for pointing this out (also, to Matt) Is the implicit lock perhaps
>dependent on the actual register used, or is it independent of the register=

xchg has implicit locking semantics regardless of operands. I believe bts (bit
test and set) does as well, but don't quote me on that.

-Matt



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.