[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] Inline assembler and compiler optimization
From: |
Joerg Wunsch |
Subject: |
Re: [avr-libc-dev] Inline assembler and compiler optimization |
Date: |
Tue, 17 Mar 2009 16:42:07 +0100 |
User-agent: |
Mutt/1.5.11 |
As Harald Kipp wrote:
> According to the document above, this may not work as expected. It
> should have been
>
> # define sei() __asm__ __volatile__ ("sei" :: "memory")
I think we've been at that discussion before, and eventually agreed
there's no point why sei() should imply a memory barrier. I forgot
about the details though, it's been a number of years ago.
Anyway, it might make sense to provide an additional macro like
__memory_barrier() that expands to __asm__ __volatile__(""::"memory").
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
- [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 <=
- 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, 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