[Top][All Lists]

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

Re: [avr-gcc-list] do-while problem

From: George Kalovyrnas
Subject: Re: [avr-gcc-list] do-while problem
Date: Wed, 5 Jun 2002 14:29:09 +0300

I believe that this is not an actual error of any of the tools you have
(compilers, linker etc.)
The generated assembly is a result of the compiler optimization. To overcome
this problem try define your variable ABC as a volatile one:

        unsigned char volatile ABC;

This statement will force your compiler to read the value of ABC variable
each time before the comparison.

avr-gcc-list at http://avr1.org

reply via email to

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