[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
- [avr-gcc-list] do-while problem, Arne Lynge Madsen, 2002/06/14
- Re: [avr-gcc-list] do-while problem, Lee Mitchell, 2002/06/14
- Re: [avr-gcc-list] do-while problem, Alexander Popov, 2002/06/14
- Re: [avr-gcc-list] do-while problem, Jesper Hansen, 2002/06/14
- Re: [avr-gcc-list] do-while problem, Vaclav Carnogursky, 2002/06/14
- Re: [avr-gcc-list] do-while problem,
George Kalovyrnas <=
- [avr-gcc-list] ATmega8??, Chris Baugher, 2002/06/14