[avr-gcc-list] Compiler generates much overhead and "stupid" code someti
From:
AndreasClaudius . Vogel
Subject:
[avr-gcc-list] Compiler generates much overhead and "stupid" code sometimes....
Date:
Thu, 28 Apr 2005 16:16:57 +0200
Hello !
I've the following problem (?):
I wanna have a while loop, wich is waiting
until the Timer overflow flag is set (see C-Code below).
Viewing this in an dissassembler (AVR
Studio), the compiler seems to make very very much overhead !
Also, the .lst and the .lss files differ.
1.question: why the files differ?
2.question: why the compiler needs 10
instructions if optimize is off?
it seems, the compiler shifts a constant until Bit 6 is set....
with opt = 2, the compiler generates 3 assembler instructions.....