Call for compiler help/advice: atomic builtins for v3

Mark Mitchell mark@codesourcery.com
Sun Nov 6 19:40:00 GMT 2005


Richard Henderson wrote:

> I believe some poor design decisions were made for p4 here.  But even
> on a platform without such problems you can expect a factor of 30
> difference.

So, that suggests that inlining these operations probably isn't very
profitable.  In that case, it seems like we could put these routines
into libgcc, and just have libstdc++ call them.  And, that if
__exchange_and_add is showing up on the top of the profile, the fix
probably isn't inlining -- it's to work out a way to make less use of
atomic operations.

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304



More information about the Libstdc++ mailing list