On Fri, Mar 28, 2014 at 09:10:11AM +0000, Andrew Haley wrote:
> On 03/28/2014 06:20 AM, dw wrote:
> > Using this clobber causes the compiler to flush all (modified) registers
> > being used to store memory-based values to memory before executing the
> > @code{asm} statement.
>
> I don't know what a "memory-based" value is. This phrase doesn't help
> at all. In addition, it isn't true. Modified registers are not
> flushed to memory unless they are clobbered or their address is taken.
> This sentence should be deleted.
i and sum form your example are not allocated in memory. If you make
one of them static you should be able to see the effect.
Bye,
Hannes