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

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

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


From: Harald Kipp
Subject: Re: [avr-libc-dev] Inline assembler and compiler optimization
Date: Tue, 17 Mar 2009 17:55:37 +0100
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

Joerg Wunsch wrote:

> Anyway, it might make sense to provide an additional macro like
> __memory_barrier() that expands to __asm__ __volatile__(""::"memory").

I know it was me who introduced the wrong syntax, but in fact it should be

__asm__ __volatile__("":::"memory")

Note the additional colon.

Harald





reply via email to

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