[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-libc-dev] Inline assembler and compiler optimization
From: |
Weddington, Eric |
Subject: |
RE: [avr-libc-dev] Inline assembler and compiler optimization |
Date: |
Tue, 17 Mar 2009 10:13:22 -0600 |
> -----Original Message-----
> From:
> address@hidden
> [mailto:address@hidden
> org] On Behalf Of Joerg Wunsch
> Sent: Tuesday, March 17, 2009 10:02 AM
> To: address@hidden
> Subject: Re: [avr-libc-dev] Inline assembler and compiler optimization
>
> As Weddington, Eric wrote:
>
> > > Anyway, it might make sense to provide an additional macro like
> > > __memory_barrier() that expands to __asm__
> > > __volatile__(""::"memory").
>
> > If we do that, we might as well make it a public symbol, yes?:
> > #define memory_barrier() __asm__ __volatile__(""::"memory")
>
> If we document it, it /is/ public. ;-)
>
> The point is that user programs might already use the identifier
> memory_barrier so we'd better avoid redefining it (at least, as long
> as it goes into one of the existing header files).
Hmm. I really hate having to explain the two leading underscores all over again.
First, we should do some research to see if there is already a gcc builtin,
available to the AVR, that does the same thing.
- [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 <=
- [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, 2009/03/18
- [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