Re: Force consecutive operation when using asm volatile macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jari Kuusisto wrote:
> 
> But I still ain't exactly sure what the memory clobber actually does,
> but I assume that it prevents reordering code blocks before and after
> the specific asm command because it declares access to memory in an
> unpredictable fashion and GCC cannot move code blocks because of that.

That is what it does.  It tells gcc that every memory operand is changed
by this asm statement.

Andrew.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux