[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. :-)
- [avr-libc-dev] Inline assembler and compiler optimization, Harald Kipp, 2009/03/17
- Re: [avr-libc-dev] Inline assembler and compiler optimization, Harald Kipp, 2009/03/17
- Re: [avr-libc-dev] Inline assembler and compiler optimization, Joerg Wunsch, 2009/03/17
- RE: [avr-libc-dev] Inline assembler and compiler optimization, Weddington, Eric, 2009/03/17
- Re: [avr-libc-dev] Inline assembler and compiler optimization, Joerg Wunsch, 2009/03/17
- RE: [avr-libc-dev] Inline assembler and compiler optimization, Weddington, Eric, 2009/03/17
- [avr-libc-dev] Re: Inline assembler and compiler optimization, David Brown, 2009/03/17
- RE: [avr-libc-dev] Re: Inline assembler and compiler optimization,
Weddington, Eric <=
- [avr-libc-dev] Re: Inline assembler and compiler optimization, David Brown, 2009/03/18
- Re: [avr-libc-dev] Inline assembler and compiler optimization, Joerg Wunsch, 2009/03/23
- RE: [avr-libc-dev] Inline assembler and compiler optimization, Weddington, Eric, 2009/03/23
- Re: [avr-libc-dev] Inline assembler and compiler optimization, Joerg Wunsch, 2009/03/23
- RE: [avr-libc-dev] Inline assembler and compiler optimization, Weddington, Eric, 2009/03/23
- Re: [avr-libc-dev] Inline assembler and compiler optimization, Joerg Wunsch, 2009/03/24
Re: [avr-libc-dev] Inline assembler and compiler optimization, Harald Kipp, 2009/03/17