avr-libc-dev
[Top][All Lists]
Advanced

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

RE: [avr-libc-dev] Re: Inline assembler and compiler optimization


From: Weddington, Eric
Subject: RE: [avr-libc-dev] Re: Inline assembler and compiler optimization
Date: Tue, 17 Mar 2009 22:00:40 -0600

 

> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of David Brown
> Sent: Tuesday, March 17, 2009 4:19 PM
> To: address@hidden
> Subject: [avr-libc-dev] Re: Inline assembler and compiler optimization

> Googling for "gcc memory_barrier" suggests that it is a name 
> used in the
> RTL patterns.

Hmm. Need to look more into the machine description then.
 
> The linux kernel uses names such as mb(), rmb() and wmb(), which are a
> bit too short.  On the architectures I looked at, these are defined to
> be "barrier()", which for gcc is in turn defined as a volatile memory
> clobber and for the intel compiler it is defined as the
> __memory_barrier() builtin.
> 
 
Well that's certainly one route. We could perhaps add it as a gcc builtin.

Thanks for doing this research, David. :-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]