Hope someone in here can enlighten me! I have a small homebuild computer with an Atmega16 I am using for some...eh stuff. When I compile the code from my Mac (avr-gcc version 4.1.1 on OSX 10.6.8) it runs just fine. When I compile the same code with avr-gcc 4.5.3 on Ubuntu, the processor runs pretty slow. The fusebits seems right when I read them.
The computer in this state is doing only one thing, why I have some "stupid whiles" in form of _delay_ms(); in it. Can it be that this is calculated differently in the different versions of avr-gcc?
The MCU has an external 16Mhz crystal.
Hope someone can help!