9fans archive / 1999 / 06 / 46 /    prev next

From: pip pip@cpu...
Subject: [9fans] TAS
Date: Sat, 19 Jun 1999 11:52:02 -0400 (EWT)



On Sat, 19 Jun 1999, Nigel Roles wrote:

>>> Why implement as a call? Because inlining is not supported by the  
>>> compiler,
I think you may have misunderstood what I meant when I said 'inline'. I
did not mean like gcc's __inline__ or C++ inline fxns. I meant doing it
maually.

>>> anyway the instruction sequence has a very strong chance of being
>>> cached as it is used a lot, so performance is not really an issue.
???


>>> Does this make it less atomic? No. The assembler instruction is just
>>> as atomic as it was before. This is all that matters. 
But what about the additional stack manipulations involved in a function
call ? I agree that things have to be done the way they are, and that
advantage has to be taken of the processors equivalent of a TSL
instruction.