GCC compiling code? Atmel AVR.

Любомудров Алексей aal6@yandex.ru
Sat Jul 14 11:12:00 GMT 2007


Hi! I'm have foloving problem with AVR optimizatin. 
ц╢he code in optimization label higher 0 compiling in: 
while(Data_Num>22); 
+00000528:   91800C83    LDS     R24,0x0C83       Load direct from data space
+0000052A:   3187        CPI     R24,0x17         Compare with immediate
+0000052B:   F7F0        BRCC    PC-0x01          Branch if carry cleared  //
Branch on compare without modifing value while()??

Value Data_Num change in interupt and in memory 0xC83 correct value, but compare with fixed on input value??
Can you Help me?

With best regards, Lubomudrov Alexey. 
P.S. If it is not problem can you send mee example of using class and struct in GCC for Atmel AVR. Thank!



--
цЁц▀ц▐ц▄ц≤ц▀ц▐ ц≈ц│ц⌡ц┴ц┬ ц ц▌ц│ц▀ц▐ц█ц≥ц┬ ц≈ ц╜ц▐ц┼ц╚ц▓ц∙ц┤.ц▓ц∙? http://moikrug.ru/



More information about the Gcc-help mailing list