GCC Status Report (2004-03-09)
Zack Weinberg
zack@codesourcery.com
Tue Mar 16 17:24:00 GMT 2004
Ian Lance Taylor <ian@wasabisystems.com> writes:
> Paul Koning <pkoning@equallogic.com> writes:
>> Perhaps we need asm("":::"barrier")?
>
> Seconded. For high performance device manipulation, it would be good
> to have a way to say "do not schedule instructions across this point"
> without also saying "clobber everything".
__builtin_fence() (possibly with an argument to request various sorts
of memory barriers that various architectures have) seems preferable
to me over asm()...
zw
More information about the Gcc
mailing list